Releases: kiwilan/php-xml-reader
Releases · kiwilan/php-xml-reader
v1.1.0
Add new validator from https://stackoverflow.com/questions/17191866/how-to-validate-xml-with-php, thanks to Francesco Casula
v1.0.11
- Add
getContents()to get contents of XML as array - Old method
getContent()is now deprecated
1.0.1
XmlReaderconvertermethod is nowgetConverter
1.0.0
BREAKING CHANGES
- All simple getters have now
getprefix. For example,getRoot()instead ofroot(),getEncoding()instead ofencoding(), etc. It concerns all simple getters ofXmlReader,XmlConverterclasses. getContentmethod ofXmlReaderclass has been renamed toparseContent.getAttributesmethod ofXmlReaderclass has been renamed toparseAttributes.
Why?
All these classes have some methods like setters or actions. To be consistent and clear, all simple getters have nowgetprefix.
Bugfixes
- Remove strong type for
XmlConverter, some XML can have a different type thanDOMDocument|DOMElement
0.2.31
- Clean
find()andsearch()methods
0.2.30
- With
find()method,strictparam is nowtrueby default - With
search()method, all values are now returned as array with default key if not duplicate, otherwise keys are incremented
0.2.22
- Fix spread array error on linux
0.2.21
find()parametervaluename tocontent- improve docs
0.2.2
search()method has now only one parameter with key to search, it will search withoutstrictoption and return all values near to the key- Add new method
find()with all options of previoussearch()method
0.2.10
- add
rootAttribute()method to extract safely an attribute from the root element