[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: to get the descendants at only one level - xpath
Senthil Nathan wrote:
Actually I'm giving the xpath query to the libxml2 library and it returns everything under that path for that query. /root/level1/child::* XPath does select nodes in an existing document, it does not change that document. So the result of that XPath is a node-set with the child elements at the third level but those elements keep their own children. If you want to manipulate a document you need XSLT (or XQuery). -- Martin Honnen http://JavaScript.FAQTs.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|