Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XMlDocument - Get required nodes (ancestor) [Thread Next] Re: XMlDocument - Get required nodes (ancestor)To: NULL Date: 6/5/2008 6:40:00 PM Ganesh Muthuvelu wrote: > So my question is, how do I get only the ancestor nodes of UnixEmail[@ID=4] > and not the other irrelvant nodes using XMlDocument.. XPath selects node in an existing XML document, it does not change the document. You need to use XSLT if you want to transform to a new document. Or you would need to use DOM manipulation to remove other nodes. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
