Skip to content

Releases: sabre-io/xml

0.2.0

26 May 00:14

Choose a tag to compare

0.2.0 Pre-release
Pre-release
  • Major BC Break: method names for the Element interface have been renamed
    from serializeXml and deserializeXml to xmlSerialize and
    xmlDeserialize. This is so that it matches PHP's JsonSerializable
    interface.
  • #25: Added XmlSerializable to allow people to write serializers without
    having to implement a deserializer in the same class.
  • #26: Renamed the Sabre\XML namespace to Sabre\Xml. Due to composer magic
    and the fact that PHP namespace are case-insensitive, this should not affect
    anyone, unless you are doing exact string matches on class names.
  • #23: It's not possible to automatically extract or serialize Xml fragments
    from documents using Sabre\Xml\Element\XmlFragment.

0.1.0

26 May 00:11

Choose a tag to compare

0.1.0 Pre-release
Pre-release
  • #16: Added ability to override elementMap, namespaceMap and baseUri for
    a fragment of a document during reading an writing using pushContext and
    popContext.
  • Removed: Writer::$context and Reader::$context.
  • #15: Added Reader::$baseUri to match Writer::$baseUri.
  • #20: Allow callbacks to be used instead of Element classes in the Reader.
  • #25: Added readText to quickly grab all text from a node and advance the
    reader to the next node.
  • #15: Added Sabre\XML\Element\Uri.

0.0.6

26 May 00:14

Choose a tag to compare

0.0.6 Pre-release
Pre-release
  • Added: CData element.
  • #13: Better support for xml with no namespaces. (@kalmas)
  • Switched to PSR-4 directory structure.

0.0.5

26 May 00:14

Choose a tag to compare

0.0.5 Pre-release
Pre-release
  • Added: baseUri property to the Writer class.
  • Added: The writeElement method can now write complex elements.
  • Added: Throwing exception when invalid objects are written.

0.0.4

26 May 00:13

Choose a tag to compare

0.0.4 Pre-release
Pre-release
  • Fixed: The KeyValue parser was skipping over elements when there was no
    whitespace between them.
  • Fixed: Clearing libxml errors after parsing.
  • Added: Support for CDATA.
  • Added: Context properties.

0.0.3

26 May 00:13

Choose a tag to compare

0.0.3 Pre-release
Pre-release
  • Changed: Reader::parse returns an array with 1 level less depth.
  • Added: A LibXMLException is now thrown if the XMLReader comes across an error.
  • Fixed: Both the Elements and KeyValue parsers had severe issues with
    nesting.
  • Fixed: The reader now detects when the end of the document is hit before it
    should (because we're still parsing an element).

0.0.2

26 May 00:12

Choose a tag to compare

0.0.2 Pre-release
Pre-release
  • Added: Elements parser.
  • Added: KeyValue parser.
  • Change: Reader::parseSubTree is now named parseInnerTree, and returns either
    a string (in case of a text-node), or an array (in case there were child
    elements).
  • Added: Reader::parseCurrentElement is now public.

0.0.1

26 May 00:13

Choose a tag to compare

0.0.1 Pre-release
Pre-release
  • First alpha release

Project started: 2012-11-13. First experiments in June 2009.