Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: deleteing some Nodes deleteing some NodesTo: NULL Date: 5/4/2004 4:21:00 AM Hi this is my xml dat
<Root><ROOM ID="1"><ITEM>aa</ITEM><ITEM>bb</ITEM><ITEM>cc</ITEM></ROOM><ROOM ID="2"><ITEM>dd</ITEM></ROOM></Root
I want to delete to the node <ROOM ID="1"> and all its associated tags i have written this cod
var workingNode = Server.CreateObject("MSXML.FreeThreadedDOMDocument")
var xmlDoc = workingNode.ownerDocument
xmlDoc.setProperty("SelectionLanguage", "XPath")
var queryString = "*[@Id=\"" + RoomId + "\"]"
oSelection = xmlDoc.selectNodes(queryString);
oSelection.removeAll();
which i pass the RoomId to it but nothing happens to my xml. what is wrong or maybe my code be wrong because completely new to xm
Thank you
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
