Re:XPath is actually pretty useful once it stops being confu...
by voltagex_ on Monday November 04, 2013 @07:41PM
(#6672293)
Over in .NET land we appear to be stuck on XPath 1.0 forever. A project I used to work on used it extensively, but I now use the HtmlAgilityPack (badly formatted HTML) or XDocument (XHTML strict or XML) where I have the choice.
[ Parent
| on HN ]
Re:XPath is actually pretty useful once it stops being confu...
by masklinn on Tuesday November 05, 2013 @03:43AM
(#6673965)
> Over in .NET land we appear to be stuck on XPath 1.0 forever.
I don't think it's a bad idea, most of the improvements in XPath 2 are the new standard functions which depending on your XPath implementation may be available as extensions (e.g. tokenize comes from exslt, an xpath 1.0 library) but along with that it brings significantly higher complexity and I think the spec has gone from "difficult to read" to "meaningless word-salad".
I really like XPath, but I can't say I was impressed by XPath 2, it loses much of xpath's simplicity with little to show for the added complexity.