Skip to content

Releases: kiwilan/php-xml-reader

v1.1.0

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 03 Oct 17:34

v1.0.11

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 20 Sep 10:38
  • Add getContents() to get contents of XML as array
  • Old method getContent() is now deprecated

1.0.1

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 10 Aug 12:40
  • XmlReader converter method is now getConverter

1.0.0

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 08 Aug 10:32

BREAKING CHANGES

  • All simple getters have now get prefix. For example, getRoot() instead of root(), getEncoding() instead of encoding(), etc. It concerns all simple getters of XmlReader, XmlConverter classes.
  • getContent method of XmlReader class has been renamed to parseContent.
  • getAttributes method of XmlReader class has been renamed to parseAttributes.

Why?
All these classes have some methods like setters or actions. To be consistent and clear, all simple getters have now get prefix.

Bugfixes

  • Remove strong type for XmlConverter, some XML can have a different type than DOMDocument|DOMElement

0.2.31

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 28 Jun 10:08
  • Clean find() and search() methods

0.2.30

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 28 Jun 09:22
  • With find() method, strict param is now true by default
  • With search() method, all values are now returned as array with default key if not duplicate, otherwise keys are incremented

0.2.22

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 27 Jun 13:24
  • Fix spread array error on linux

0.2.21

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 27 Jun 13:17
  • find() parameter value name to content
  • improve docs

0.2.2

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 27 Jun 13:08
  • search() method has now only one parameter with key to search, it will search without strict option and return all values near to the key
  • Add new method find() with all options of previous search() method

0.2.10

Choose a tag to compare

@ewilan-riviere ewilan-riviere released this 20 Jun 07:30
  • add rootAttribute() method to extract safely an attribute from the root element