-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | xmlhtml backend support for the xmlbf library. -- -- xmlhtml backend support for the xmlbf library. @package xmlbf-xmlhtml @version 0.1 module Xmlbf.XmlHtml -- | Convert a Node from Text.XmlHtml into an Node -- from Xmlbf, if possible. element :: Node -> Either String Node -- | Like element, but returns Nothing in case the given node -- is a Comment. Children Comments are discarded from the -- result. element' :: Node -> Either String (Maybe Node) -- | Parses a given UTF8-encoded raw XML fragment into a, using -- the xeno Haskell library, so all of xeno's parsing -- quirks apply. -- -- You can provide the output of this function as input to Xmlbf's -- runParser. -- -- 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. nodesXml :: ByteString -> Either String [Node] -- | Like nodesXml, but parses using xmlhtml's quirks HTML -- mode. nodesHtml :: ByteString -> Either String [Node]