I remember looking through XPath and wondering why no one had converted as much of it as possible to a generic path language for any tree-based data format, which JSON, TOML, YAML, and XML are.
XPath was the best of the XML standards. Well, it helps that the language wasn't xml unlike XSLT and others.