logoalt Hacker News

codeuliketoday at 7:26 AM1 replyview on HN

Xpath would have been nice if you didnt have to pedantically namespace every bit of every query


Replies

masklinntoday at 8:26 AM

That… has nothing to do with xpath?

If your document has namespaces, xpath has to reflect that. You can either tank it or explicitly ignore namespaces by foregoing the shorthands and checking `local-name()`.

show 1 reply