|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: (simple?) xpath question
>>>>> "Mark" == mark bordelon <markcbordelon@xxxxxxxxx> writes:
Mark> All *help*! What is the best way to query xml with xpath
Mark> to get a disjoint nodelist? Specifically i want to include
Mark> just the root node alongwith a descendent node. XML:
Mark> <a> <b> <c> </c> </b> </a> XPATH: //c
Mark> DESIRED RESULT NODELIST: i.e. not this: <c> </c> but
Mark> rather this: <a> <c> </c> </a>
One possibility is:
//*[name() != "b"]
It depends on your exact requirements.
--
Colin Adams
Preston Lancashire
|
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
|






