Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSXML - CreateNode using XPath?

Status
Not open for further replies.

ashorton

Programmer
Mar 1, 2001
24
GB
I would like to 'createNode' using an XPath. Is there a method in MSXML 4 to do this? If not does anyone know how?
 
If you could do it, I would suspect it would be a hack.

The usual technique is to do a selectSingleNode to find the parent, do a createNode (or createElement) off the DOM object, assign the value, and then do a appendChile to the parent.

You can encapsulate this in a function to get some reuse out of it.

Chip H.
 
You can also use XSLT and the node-set() extension function to create a temporary node
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top