how to merge xml string to main xml document object

Posted by CliffC on Stack Overflow See other posts from Stack Overflow or by CliffC
Published on 2010-04-07T10:19:53Z Indexed on 2010/04/07 10:23 UTC
Read the original article Hit count: 507

Filed under:
|

how can i merge the following xml string

<employee>
    <name>cliff</name> 
</employee>

to my existing xml document object

    XmlDocument xmlDoc = new XmlDocument();
        XmlElement xmlCompany = xmlDoc.CreateElement("Company");

the final output should look like

<Company>
 <employee>
    <name>cliff</name> 
 </employee>
</Company>

thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about Xml