xmlhtml-0.1.7: XML parser and renderer with HTML 5 quirks mode

Safe HaskellSafe-Infered

Text.XmlHtml.XML.Render

Synopsis

Documentation

renderXmlFragment :: Encoding -> [Node] -> BuilderSource

Function for rendering XML nodes without the overhead of creating a Document structure.

firstNode :: Encoding -> Node -> BuilderSource

Process the first node differently to encode leading whitespace. This lets us be sure that parseXML is a left inverse to render.