I've been working with the xml.linq classes in .net recently. But may need to use a linux friendly language for an upcoming project.
The things I like the most are
- Xdocument, being able to load from a file or parse from a string
- XElement, quickly creating a custom structure for page specific data
- Traversing Children, Parents, Siblings etc
- Xml.Linq in general getting and
setting values by
Variable.Element("elementName").value() for Variable.Descandants("elementName").value()
not to mention attributes adding descendants and all the other goodies that are built in.
So my question is. Is there another language that has these kinds of features built in for xml? I'd like to avoid manual parsing and have the flexibility of on the fly generated xml.
Bonus Question: Do other languages have features that could work similar to Linq to Xml for querying the xDocument/xelement equivalent.