Hopefully someone else can chime in and sell it better than me. 8^)
The key thing is that since XML is a first-class datatype in XPath, trees are therefore a first class datatype. Since XPath is built into the language, you don’t need lenses or anything like that to do operations on deep tree structures. It just works. I am tempted sometimes to use it for more general projects than processing XML.
I’m working on a similar project for an XQuery/XML based website currently
cyberpunk•2mo ago
Whats this stuff used for?
smartmic•2mo ago
Check Wikipedia for more information: https://en.wikipedia.org/wiki/XQuery