This package provides parsing and rendering functions for XML. It is based on the datatypes found in the xml-types package. This package is broken up into the following modules:
Text.XML: DOM-based parsing and rendering. This is the most commonly used module.
Text.XML.Cursor: A wrapper around Text.XML which allows bidirectional traversing of the DOM, similar to XPath. (Note: Text.XML.Cursor.Generic is the same concept, but will work with any node representation.)
Text.XML.Unresolved: A slight modification to Text.XML which does not require all entities to be resolved at parsing. The datatypes are slightly more complicated here, and therefore this module is only recommended when you need to deal directly with raw entities.
Text.XML.Stream.Parse: Streaming parser, including some streaming parser combinators.
psDecodeEntities is no longer passed numeric character references (e.g.,  , A) and the predefined XML entities (&, <, etc). They are now handled by the parser. Both of these construct classes only have one spec-compliant interpretation and this behaviour must always be present, so it makes no sense to force user code to re-implement the parsing logic.
In prior versions of xml-conduit, hexadecimal character references with a leading 0x or 0X like &0x20; were accepted. This was not in compliance with the XML specification and it has been corrected.
xml-conduit now rejects some (but not all) invalid-according-to-spec entities during parsing: specifically, entities with a leading # that are not character references are no longer allowed and will be parse errors.
1.6.0
Dropped the dependency on data-default for data-default-class, reducing the transitive dependency load. For most users, this will not be a breaking change, but it does mean that importing Text.XML.Conduit will no longer bring various instances for Default into scope. This will break code that relies on those instances and does not otherwise see them. To fix this, import Data.Default from data-default or one of the more specific instance-providing packages directly (e.g., data-default-dlist for the DList instance).
1.5.1
New render setting, rsXMLDeclaration; setting it to False omits the XML declaration.
1.5.0
tag function no longer throws an exception when attributes don’t match #93
Add many_ combinator to avoid building results in memory #94
Turn some functions from Consumer Event m a to ConduitM Event o m a to allow yielding values
Replace takeAllTreesContent with takeAnyTreeContent, that only consumes one tree
Introduce NameMatcher type to refactor tag parsers
Add a couple of take* functions to stream events rather than parse them
Rename ignore* functions to comply with naming convention