XML is a cheap DSL
https://unplannedobsolescence.com/blog/xml-cheap-dsl/
The lesson I took from this is that a universal data representation is worth its weight in gold. There are exactly two options in this category. In most cases you should choose JSON. If you need a DSL though, XML is by far the cheapest one, and the cost-efficiency of building on it will empower your team to spend their innovation budget elsewhere.
JSONPath - XPath for JSON
http://goessner.net/articles/JsonPath
"It's time to wonder, if there is a need for something like XPath4JSON and what are the problems it can solve."
XQilla: XQilla
http://xqilla.sourceforge.net/HomePage
"XQilla is an XQuery∞ and XPath 2∞ library and command line utility written in C++, implemented on top of the Xerces-C∞ library."
XPath in JavaScript
http://mcc.id.au/code/xpathjs
"Here is the first revision of an implementation of XPath 1.0 in JavaScript." Pretty damn nifty