why do you want to remove them?
and is the XML the first place to start with, or is it on the generation of the XML you may want to skip them being created?
in vbscript, using the xml "plain string", I would eventually do a plain "replace" of
"<WorksheetId></WorksheetId>" by "" and "<M3JobType></M3JobType>" by "" ... http://www.w3schools.com/vbscript/func_replace.asp
Neil Thompson
ASKER
The XML is coming from another system so I cannot stop them being created unfortunately so need to work on the XML itself before I pump it on.
I've found out this is the way to do it:
Set myNode = XMLDoc.SelectSingleNode("//WorksheetId") myNode.ParentNode.RemoveChild(myNode) Set myNode = XMLDoc.SelectSingleNode("//M3JobType") myNode.ParentNode.RemoveChild(myNode)
and is the XML the first place to start with, or is it on the generation of the XML you may want to skip them being created?
in vbscript, using the xml "plain string", I would eventually do a plain "replace" of
"<WorksheetId></WorksheetI
http://www.w3schools.com/vbscript/func_replace.asp