|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPath calculation
A less brute-force way (if the IDs are already hashed, or if perhaps the document was deep rather than broad) would be: 0) Use the root as the default anchor. 1) Find any elements with IDs closer than the root element. 2) Find the closest of these elements. 3) Find any unique paths which are shorter than the length of the current element. Use the closest of these as the anchor. Cheers Rick Jelliffe
|
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
|
|||||||||

Cart








