Need to add header node to XmlDocument

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have an XmlDocument in the following format
<Child><br/>

<CaseNumber>0</CaseNumber> <br/>
<TestNumber>0</TestNumber> <br/>
<ProjectID>0</ProjectID> <br/>
</Child><br/>
<Child><br/>
<CaseNumber>0</CaseNumber> <br/>
<TestNumber>0</TestNumber> <br/>
<ProjectID>0</ProjectID> <br/>
</Child><br/>
<Child><br/>
<CaseNumber>0</CaseNumber> <br/>
<TestNumber>0</TestNumber> <br/>
<ProjectID>0</ProjectID> <br/>
</Child>

I have to a a header node like this: <MyElements xmlns:i="http://www.w3.org/2001/XMLSchema-instance </MyElements>
That wraps around these Child Nodes. I have tried different methods of the XmlDocument object with no success. How can I get this done?


View the full article
 
Back
Top