title: Create XML node
body: <p>I have the below XML file where I want to add a new child under first <code>&lt;Profile_Path&gt;&lt;/Profile_Path&gt;</code> node.</p>
  
  <p><strong>Original XML:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Profiles&gt;
    &lt;Profile&gt;
      &lt;Profile_Name&gt;Profile 1&lt;/Profile_Name&gt;
      &lt;Profile_Path&gt;E:\Test&lt;/Profile_Path&gt;
    &lt;/Profile&gt;
    &lt;Profile&gt;
      &lt;Profile_Name&gt;Profile 2&lt;/Profile_Name&gt;
      &lt;Profile_Path&gt;E:\Test&lt;/Profile_Path&gt;
    &lt;/Profile&gt;
  &lt;/Profiles&gt;
  </code></pre>
  
  <p><strong>After running the code...</strong></p>
  
  <pre><code>Public Sub CreateProjectXml()
  
      ProfileList.Load(xml_path)
      Dim profilesNode As XmlNode = ProfileList.SelectSingleNode("Profiles")
      Dim profiles As XmlNodeList = profilesNode.SelectNodes("Profile")
      Dim profile As XmlNode = profiles(2)
  
      Dim project_info As XmlElement = ProfileList.CreateElement("Project_Name")
  
      project_info.InnerText = "Project 1"
      ProfileList.DocumentElement.AppendChild(project_info)
  
      ProfileList.Save(xml_path)
  
  End Sub
  </code></pre>
  
  <p><strong>I get the following result:</strong></p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;Profiles&gt;
        &lt;Profile&gt;
          &lt;Profile_Name&gt;Profile 1&lt;/Profile_Name&gt;
          &lt;Profile_Path&gt;E:\Test&lt;/Profile_Path&gt;
        &lt;/Profile&gt;
        &lt;Profile&gt;
          &lt;Profile_Name&gt;Profile 2&lt;/Profile_Name&gt;
          &lt;Profile_Path&gt;E:\Test&lt;/Profile_Path&gt;
        &lt;/Profile&gt;
        &lt;Project_Name&gt;Project 1&lt;/Project_Name&gt;
      &lt;/Profiles&gt;
  </code></pre>
  
  <p>Help me please with the correct code!</p>