Add Instructions for reading and writing XML#132
Conversation
|
I'd like to make this a bit more robust for rewriting existing Xml. (Mainly preserving whitespace between attributes and better support for entity references (e.g. Though I cannot use the builtin parsers / serializers for this, so it'll be a bit of a rewrite. |
|
This is great, thanks for putting it together.
I don't have a formal definition at this point. Practically speaking, it is nice to have some of the more common tools easily accessible in the language and I'm not too worried about limiting the |
# Conflicts: # src/aya/StaticData.java
… of dicts and lists
Disable truncating in important strings (106b604 and 348006b)Disables truncating in
Publish a runtime artifact (3de2229)This contains files required for running aya. ( That way, package developers can run 'pkg.test' in their build process. Redesign the Xml instructions to be easier to use (3301811)With the old instructions, I tried to push too many usecases onto a single instruction. The new instructions focus on extracting/writing data with as little friction as possible. This package https://github.com/BlazingTwist/xml.aya (WIP) will cover more advanced usages, such as modifying existing documents, extracting data with xPath expressions, reading data from comments/processing-instructions, or validating against an XSD. |
For the record, where do you draw the line between features that should be extra packages instead of merged into the standard library?
This adds instructions for reading and writing XML, supporting whitespace and meta nodes.
I've been using this for basic XML processing, where an XSLT transformer would be excessive.
xml.dumpsexample:xml.loadsexample:It's a bit clunky to use / I had to fight the standard library to get this to work.
But it's better than Regex.