dotnetnoob wrote:
i need to copy several xml files and use it as xml element and insert them
into a xml file. i use DOM support in .Net and from the pervious help i was
able to copy and insert them into the xml file that i want but i need to
change some xml node value before i insert. what is the best way to do this?
Well if you use importNode to import a node from a different document
then that node the importNode method returns can be manipulated like any
DOM node so you can remove child or descendant nodes or can insert new
child nodes, you can add and remove attributes, you can change the order
of node. Of course all that requires knowledge and use of the DOM API to
create, insert or remove nodes (and maybe XPath to find nodes).
Depending on your needs and your skills an XSLT stylesheet might also be
a tool to do the job, in some cases certainly more elegantly than DOM code.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/