- GodotXML now escapes nodes', attributes' and CDATAs' contents. This means that, e.g., doing
node.attributes.abc = '"Quoted"'
, dumpingnode
, and parsing it back will now properly setabc = '"Quoted"'
, instead of issuing a parsing error.
- The README now better describes how to use the addon, as well as includes a "Version Guarantees" section.
- Implement
XMLNode.dump_file
,XMLNode.dump_buffer
andXMLNode.dump_str
. - Implement support for CDATA nodes.
- Only remove trailing blankets instead of all.
- Concatenate all
NODE_TEXT
nodes' contents instead of respecting only the first one.
- Deprecate
XML.dump_file
,XML.dump_buffer
andXML.dump_str
.
- Improve type safety across the codebase.
- Improve documentation and README wording.
- Miscellaneous code clean-ups.
- Remove
XMLNodeType
due to being unused. - Rename
beautify
parameter in allXML.dump_*()
functions topretty
. - Move
XMLDocument.to_dict()
toXMLNode.to_dict()
. - Remove "configurability" parameters from
XMLNode.to_dict()
. - Change structure of
XMLNode.to_dict()
's output.
- Make
XML
able to handle semantically invalid XML. - Add
indent_level
andindent_length
to control initial indentation level and level width respectively. - Allow accessing
XMLNode
children by their name if their name is unqiue amongst thatXMLNode
's children. Works in the editor too. - Document structure of
XMLNode.to_dict()
's output.
- Fix empty standalone nodes geting two spaces before
>
when prettified. - Fix node content being on the same line as it's node when prettified.
- Remove unnecessary checks in parsing logic.
- Properly document code to make contributing easier.
- Reformat code to use 4-space indent instead of tabs.
- Remove commented out code in some places.
- Refactor prettifier and dictionary converter to be recursive-descent, significantly simplifying logic.