title: Insert XML to XML Document at specified tag
body: <p>I am working on XML where I want to insert below XML tag into parent xml:</p>
  
  <blockquote>
  <pre><code>&lt;Subject&gt;&lt;/Subject&gt;
  </code></pre>
  </blockquote>
  
  <p>Parent XML</p>
  
  <blockquote>
  <pre><code>&lt;School&gt;
     &lt;ClassB&gt;&lt;/ClassB&gt;
     &lt;ClassA&gt;
        &lt;Students&gt;
        &lt;/Students&gt;
     &lt;/ClassA&gt;
  &lt;/School&gt;
  </code></pre>
  </blockquote>
  
  <p>want the final out put as </p>
  
  <blockquote>
  <pre><code>&lt;School&gt;
     &lt;ClassB&gt;&lt;/ClassB&gt;
     &lt;ClassA&gt;
        &lt;Subject&gt;&lt;/Subject&gt;
        &lt;Students&gt;
        &lt;/Students&gt;
     &lt;/ClassA&gt;
  &lt;/School&gt;
  </code></pre>
  </blockquote>
  
  <p>Tried by below code:</p>
  
  <blockquote>
  <pre><code>XmlDocument xmlRequest = new XmlDocument();
   xmlRequest.LoadXml(parentXML);
   XmlDocumentFragment xmlfrag = xmlRequest.CreateDocumentFragment();
   xmlfrag.InnerXml = xmlSubjects;
   xmlRequest.DocumentElement.InsertBefore(xmlfrag,  xmlRequest.DocumentElement.FirstChild);
  </code></pre>
  </blockquote>
  
  <p>This will insert Subject element right after School. So How to insert at specific path. In this case under ClassA element.</p>
  
  <p>Please help me here.</p>