How to add a tag <tag val="N"> to an xml file
-
Hi, I am using the IXMLDOM objects to create an xml file and write tags to this file. I would like to create a tag <children count="2">, and under that write the names of the children <childname> value </childname>. this should look as folowing: <Root> <Person> <Name> value </Name> <PhoneNumber> value </PhoneNumber> <Children count = 2> <childName> value </childName> <childName> value </childName> </Children> </Person> </Root> 1. Using IXMLDOMDocument or IXMLDOMNode, how do I add a node <Children count =2>, is this an attribute? How do I make sure that it is inserted under the tag? 2. How do I add the sub nodes underneath <childName> value </childName> If you could give me code examples tha twould be great. I've tried all kinds of options using the IXMLDOM functiom and it doesn't work!! Thanks.