xml-conduit-1.9.1.1: Pure-Haskell utilities for dealing with XML with the conduit package.
Safe HaskellNone
LanguageHaskell2010

Text.XML.Unresolved

Description

DOM-based XML parsing and rendering.

In this module, attribute values and content nodes can contain either raw text or entities. In most cases, these can be fully resolved at parsing. If that is the case for your documents, the Text.XML module provides simplified datatypes that only contain raw text.

Synopsis

Non-streaming functions

Lazy bytestrings

Text

Byte streams

Streaming functions

toEvents :: Document -> [Event] #

Render a document into events.

elementToEvents :: Element -> [Event] #

Render a document element into events.

Since: 1.3.5

fromEvents :: MonadThrow m => ConduitT EventPos o m Document #

Parse a document from a stream of events.

elementFromEvents :: MonadThrow m => ConduitT EventPos o m (Maybe Element) #

Try to parse a document element (as defined in XML) from a stream of events.

Since: 1.3.5

Exceptions

Settings

def :: Default a => a #

The default value for this type.

Parse

data ParseSettings #

Instances

Instances details
Default ParseSettings # 
Instance details

Defined in Text.XML.Stream.Parse

Methods

def :: ParseSettings #

psRetainNamespaces :: ParseSettings -> Bool #

Whether the original xmlns attributes should be retained in the parsed values. For more information on motivation, see:

https://github.com/snoyberg/xml/issues/38

Default: False

Since 1.2.1

Render

data RenderSettings #

Instances

Instances details
Default RenderSettings # 
Instance details

Defined in Text.XML.Stream.Render

Methods

def :: RenderSettings #

rsNamespaces :: RenderSettings -> [(Text, Text)] #

Defines some top level namespace definitions to be used, in the form of (prefix, namespace). This has absolutely no impact on the meaning of your documents, but can increase readability by moving commonly used namespace declarations to the top level.