Releases: Ariadne-CMS/arc-xml
Updated to PHP 7.4 and PHPUnit 9
Full namespace support
- get/set/unset elements and attributes with namespaces
- namespaces are automatically added to the document if needed
- aliases for a namespace in the document are re-used even if you use a different alias in your code
Improved namespace support
- css namespace selector support
- registerNamespace() method to register parser namespaces
- direct access using registered prefixes: $xml->{'ns:tag'}
- direct access using namespace URI's: $xml->{'{uri}tag'}
Small fix
The writer now escapes/removes invalid characters
Added a special \arc\xml::raw() method to insert prerendered XML with the writer.
Added getElementById, moved writer functions to static class
This release moves all static methods in the Writer to \arc\xml, the NodeListTrait now calls these there, this allows the Writer to catch all methods preventing conflicts between tag names and the static functions.
This release also adds support for the getElementById() method. This method can be called on any element and only searches the elements subtree.
Added docblocks, DOM methods and properties
- now indents xml generated by the Writer
- added docblocks for all methods and properties, as well as for the DOMElement and SimpleXMLElement methods and properties accessible through the Proxy
- fixed support for most DOMElement and SimpleXMLElement methods and properties
Major changes and improvements
This release adds the ability to fully access parsed elements as SimpleXMLElement or as a DOMElement. Both sets of methods and properties are supported, no need to juggle between the two.
The parser now works fully, including for partial XML strings - with no single root node.
arc-xml: fixed parsing, code style cleanup
\arc\xml::parse now works, but ixn't complete yet.
code style more to PSR-2
fixing packagist release
... the composer.json contained a version numer, so packagist didn't display the releases correctly