title: Adding multiple child nodes to the Parent node
body: <p>I am trying to create and XML file with data I am collecting, however for a particular  I need multiple sub tags to be generated</p>
  
  <p>So I wish to have something like this:-</p>
  
  <pre><code>&lt;Feedbacks&gt;
     &lt;Feedback&gt;
       &lt;Name&gt;&lt;/Name&gt;
       &lt;Surname&gt;&lt;/Surname&gt;
       &lt;Images&gt;
         &lt;Image&gt;&lt;/Image&gt;
         &lt;Image&gt;&lt;/Image&gt;
         &lt;Image&gt;&lt;/Image&gt;
       &lt;/Images&gt;
     &lt;/Feedback&gt;
  &lt;/Feedbacks&gt;
  </code></pre>
  
  <p>Sorry do not know how to paste the correct XML file here, but I think you get the idea. At the moment I have this code that is working:-</p>
  
  <pre><code>    private static void CreateFeedbackXMLFile()
      {
          XmlDocument doc = new XmlDocument();
          XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
          doc.AppendChild(docNode);
  
          XmlNode Node = doc.CreateElement("Feedbacks");
          doc.AppendChild(Node);
  
          string fileName = "Feedback.xml";
          string filePath = Properties.Settings.Default.DefaultFolder + "\\" + fileName;
  
          doc.Save(filePath);
      }
  
      public static void InsertFeedback(Feedback feedback)
      {
          CreateFeedbackXMLFile();
  
          string filePath = Properties.Settings.Default.DefaultFolder + "\\Feedback.xml" ;
          XDocument xmlDoc = XDocument.Load(filePath);
          XElement XParentElement = new XElement("Feedback");
  
          InsertIntoXMLDoc(feedback, filePath, xmlDoc);
      }
  
  
      private static void InsertIntoXMLDoc(Feedback feedback, string filePath, XDocument xmlDoc)
      {
  
          xmlDoc.Element("Feedbacks").Add(new XElement("Feedback",
                                          new XElement("Name", feedback.Name),
                                          new XElement("Surname", feedback.Surname),
                                          new XElement("Email", feedback.Email),
                                          new XElement("Website", feedback.Website),
                                          new XElement("Suggestion", feedback.Suggestion),
                                          new XElement("Error", feedback.Error),
                                          new XElement("MailingList", feedback.MailingList),
                                          new XElement("Comments", feedback.Comments)
                              ));
  
          }
          xmlDoc.Save(filePath);
      }
  </code></pre>
  
  <p>Now I need to loop through the imageList and create nodes according to how many images I have.</p>
  
  <p>Thanks for your help and time</p>