66
The lost art of XML — mmagueta
(marcosmagueta.com)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
While I understand the critic about XPath and XSL, the fact that we have proper tools to query and tranform XML instead of the messy wat of getting specific information from JSON is also one of tge strong point of XML.
XSLT and XPath are entirely underrated. They are seriously powerful tools.
While you can approximate XSLT with a heap of coffee and a JSON parser it's harder to keep it declarative.
There is JSONPath, at least: https://en.wikipedia.org/wiki/JSONPath
Yeah, I wish I had something like XPath as consistently (in terms of availability and syntax) for JSON.
Has no one here heard of
jq?You do? jsonAta and JSONPath both exist and are very good.