4 ms·
Why aren'y you just using xpath? There are mature and powerful xpath libraries in all major languages. Of course if you use only one limited tool which was nev
by Erlich_Bachman 6y ago
Why aren'y you just using xpath? There are mature and powerful xpath libraries in all major languages.
Of course if you use only one limited tool which was never meant to be the main manipulator of xml (getElementByID), then you'll run into problems. It is like never using regexp and complaining that simple strings are a bad data structure.
- hinkley 6y agoXpath still uses the same broken DOM functions under the hood. Exact same outcome.
- Erlich_Bachman 6y agoThat just doesn't make any sense. Regardless of what functions are used "under the hood" (how do you even know that? Did you go through every xpath library? What do you even refer to when I use an xpath library in php to open an xml document. There isn't even a web page or "DOM" to speak of, there is no browser, no JavaScript, it's just xml.), the interface provides you with ability to select whatever you want from an almost arbitrarily complex xml document with 1-liners of xpath. This is not the same outcome as getElementByID-acrobatics.