Skip to content
Compare
Choose a tag to compare
@tomasf tomasf released this 27 Feb 16:45
· 1 commit to main since this release

New Features

  • Node has a new xPath property that calculates a unique absolute XPath.
  • Copying nodes is now supported, using the copy(to:at:) method. This also works between two different documents.
  • There's a new protocol called XMLElementCodable that lets you implement methods on your own types for encoding and decoding them to/from XML elements. Similarly, XMLValueCodable handles conversion between value types and strings used for XML attributes or text content.

Bug Fixes

  • A bug where the descendants property returned nodes outside the intended tree has been fixed.
  • Resetting the default namespace with xmlns="" is now supported.

Notes

  • XPathResultNode has been renamed to XPathNode.