xmlbf-xmlhtml-0.2.2: xmlhtml backend support for the xmlbf library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Xmlbf.XmlHtml

Synopsis

Documentation

fromXmlHtmlNode Source #

Arguments

:: Node

A Node from Text.XmlHtml.

-> Either String Node

A Node from Xmlbf, if possible.

Convert a Node from Text.XmlHtml into an Node from Xmlbf, if possible.

fromRawXml Source #

Arguments

:: ByteString

Raw XML fragment.

-> Either String [Node]

Nodes from Xmlbf

Parses a given UTF8-encoded raw XML fragment into a, using the xmlhtml Haskell library, so all of xmlhtml's parsing quirks apply.

You can provide the output of this function as input to Xmlbf's parse.

The given XML can contain more zero or more text or element nodes.

Comments are discarded from the resulting nodes and their children.

Surrounding whitespace is not stripped.

fromRawHtml Source #

Arguments

:: ByteString

Raw HTML fragment.

-> Either String [Node]

Nodes from Xmlbf

Like fromRawXml, but parses using xmlhtml's quirks HTML mode.