This file is indexed.

/usr/share/doc/libghc-xml-conduit-doc/html/Text-XML.html is in libghc-xml-conduit-doc 1.2.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Text.XML</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Text-XML.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">xml-conduit-1.2.1: Pure-Haskell utilities for dealing with XML with the conduit package.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Text.XML</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Data types
</a></li><li><a href="#g:2">Parsing
</a><ul><li><a href="#g:3">Files
</a></li><li><a href="#g:4">Bytes
</a></li><li><a href="#g:5">Text
</a></li><li><a href="#g:6">Other
</a></li></ul></li><li><a href="#g:7">Rendering
</a></li><li><a href="#g:8">Settings
</a><ul><li><a href="#g:9">Parsing
</a><ul><li><a href="#g:10">Entity decoding
</a></li></ul></li><li><a href="#g:11">Rendering
</a></li></ul></li><li><a href="#g:12">Conversion
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>DOM-based parsing and rendering.
</p><p>This module requires that all entities be resolved at parsing. If you need
 to interact with unresolved entities, please use <a href="Text-XML-Unresolved.html">Text.XML.Unresolved</a>. This
 is the recommended module for most uses cases.
</p><p>While many of the datatypes in this module are simply re-exported from
 <code>Data.XML.Types</code>, <code><a href="Text-XML.html#t:Document">Document</a></code>, <code><a href="Text-XML.html#t:Node">Node</a></code> and <code><a href="Text-XML.html#t:Element">Element</a></code> are all redefined here to
 disallow the possibility of unresolved entities. Conversion functions are
 provided to switch between the two sets of datatypes.
</p><p>For simpler, bidirectional traversal of the DOM tree, see the
 <a href="Text-XML-Cursor.html">Text.XML.Cursor</a> module.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:Document">Document</a>  = <a href="#v:Document">Document</a> {<ul class="subs"><li><a href="#v:documentPrologue">documentPrologue</a> :: <a href="Text-XML.html#t:Prologue">Prologue</a></li><li><a href="#v:documentRoot">documentRoot</a> :: <a href="Text-XML.html#t:Element">Element</a></li><li><a href="#v:documentEpilogue">documentEpilogue</a> :: [<a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Prologue">Prologue</a>  = <a href="#v:Prologue">Prologue</a> {<ul class="subs"><li><a href="#v:prologueBefore">prologueBefore</a> :: [<a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a>]</li><li><a href="#v:prologueDoctype">prologueDoctype</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML.html#t:Doctype">Doctype</a></li><li><a href="#v:prologueAfter">prologueAfter</a> :: [<a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Instruction">Instruction</a>  = <a href="#v:Instruction">Instruction</a> {<ul class="subs"><li><a href="#v:instructionTarget">instructionTarget</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li><li><a href="#v:instructionData">instructionData</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Miscellaneous">Miscellaneous</a> <ul class="subs"><li>= <a href="#v:MiscInstruction">MiscInstruction</a> <a href="Text-XML.html#t:Instruction">Instruction</a>  </li><li>| <a href="#v:MiscComment">MiscComment</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:Node">Node</a> <ul class="subs"><li>= <a href="#v:NodeElement">NodeElement</a> <a href="Text-XML.html#t:Element">Element</a>  </li><li>| <a href="#v:NodeInstruction">NodeInstruction</a> <a href="Text-XML.html#t:Instruction">Instruction</a>  </li><li>| <a href="#v:NodeContent">NodeContent</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>  </li><li>| <a href="#v:NodeComment">NodeComment</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:Element">Element</a>  = <a href="#v:Element">Element</a> {<ul class="subs"><li><a href="#v:elementName">elementName</a> :: <a href="Text-XML.html#t:Name">Name</a></li><li><a href="#v:elementAttributes">elementAttributes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML.html#t:Name">Name</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li><li><a href="#v:elementNodes">elementNodes</a> :: [<a href="Text-XML.html#t:Node">Node</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Name">Name</a>  = <a href="#v:Name">Name</a> {<ul class="subs"><li><a href="#v:nameLocalName">nameLocalName</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li><li><a href="#v:nameNamespace">nameNamespace</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li><li><a href="#v:namePrefix">namePrefix</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Doctype">Doctype</a>  = <a href="#v:Doctype">Doctype</a> {<ul class="subs"><li><a href="#v:doctypeName">doctypeName</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></li><li><a href="#v:doctypeID">doctypeID</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></li></ul>}</li><li class="src short"><span class="keyword">data</span>  <a href="#t:ExternalID">ExternalID</a> <ul class="subs"><li>= <a href="#v:SystemID">SystemID</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>  </li><li>| <a href="#v:PublicID">PublicID</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>  </li></ul></li><li class="src short"><a href="#v:readFile">readFile</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-system-filepath-doc/html/Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:parseLBS">parseLBS</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a> <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:parseLBS_">parseLBS_</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:sinkDoc">sinkDoc</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m =&gt; <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:parseText">parseText</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a> <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:parseText_">parseText_</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a> -&gt; <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:sinkTextDoc">sinkTextDoc</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m =&gt; <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> m <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:fromEvents">fromEvents</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m =&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="Text-XML-Stream-Parse.html#t:EventPos">EventPos</a> m <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:UnresolvedEntityException">UnresolvedEntityException</a>  = <a href="#v:UnresolvedEntityException">UnresolvedEntityException</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:XMLException">XMLException</a>  = <a href="#v:InvalidXMLFile">InvalidXMLFile</a> <a href="/usr/share/doc/libghc-system-filepath-doc/html/Filesystem-Path.html#t:FilePath">FilePath</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a></li><li class="src short"><a href="#v:writeFile">writeFile</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="/usr/share/doc/libghc-system-filepath-doc/html/Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:renderLBS">renderLBS</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:renderText">renderText</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a></li><li class="src short"><a href="#v:renderBytes">renderBytes</a> :: (MonadBase base m, PrimMonad base) =&gt; <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:ConduitM">ConduitM</a> a <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m ()</li><li class="src short"><a href="#v:def">def</a> :: <a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> a =&gt; a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:ParseSettings">ParseSettings</a> </li><li class="src short"><a href="#v:psDecodeEntities">psDecodeEntities</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="Text-XML-Stream-Parse.html#t:DecodeEntities">DecodeEntities</a></li><li class="src short"><a href="#v:psRetainNamespaces">psRetainNamespaces</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:decodeXmlEntities">decodeXmlEntities</a> :: <a href="Text-XML-Stream-Parse.html#t:DecodeEntities">DecodeEntities</a></li><li class="src short"><a href="#v:decodeHtmlEntities">decodeHtmlEntities</a> :: <a href="Text-XML-Stream-Parse.html#t:DecodeEntities">DecodeEntities</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:RenderSettings">RenderSettings</a> </li><li class="src short"><a href="#v:rsPretty">rsPretty</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:rsNamespaces">rsNamespaces</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; [(<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]</li><li class="src short"><a href="#v:rsAttrOrder">rsAttrOrder</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Name">Name</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML.html#t:Name">Name</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> -&gt; [(<a href="Text-XML.html#t:Name">Name</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]</li><li class="src short"><a href="#v:orderAttrs">orderAttrs</a> :: [(<a href="Text-XML.html#t:Name">Name</a>, [<a href="Text-XML.html#t:Name">Name</a>])] -&gt; <a href="Text-XML.html#t:Name">Name</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML.html#t:Name">Name</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> -&gt; [(<a href="Text-XML.html#t:Name">Name</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]</li><li class="src short"><a href="#v:toXMLDocument">toXMLDocument</a> :: <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Document">Document</a></li><li class="src short"><a href="#v:fromXMLDocument">fromXMLDocument</a> :: <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>) <a href="Text-XML.html#t:Document">Document</a></li><li class="src short"><a href="#v:toXMLNode">toXMLNode</a> :: <a href="Text-XML.html#t:Node">Node</a> -&gt; <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Node">Node</a></li><li class="src short"><a href="#v:fromXMLNode">fromXMLNode</a> :: <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Node">Node</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>) <a href="Text-XML.html#t:Node">Node</a></li><li class="src short"><a href="#v:toXMLElement">toXMLElement</a> :: <a href="Text-XML.html#t:Element">Element</a> -&gt; <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Element">Element</a></li><li class="src short"><a href="#v:fromXMLElement">fromXMLElement</a> :: <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Element">Element</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>) <a href="Text-XML.html#t:Element">Element</a></li></ul></div><div id="interface"><h1 id="g:1">Data types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Document" class="def">Document</a>  <a href="src/Text-XML.html#Document" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Document" class="def">Document</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:documentPrologue" class="def">documentPrologue</a> :: <a href="Text-XML.html#t:Prologue">Prologue</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:documentRoot" class="def">documentRoot</a> :: <a href="Text-XML.html#t:Element">Element</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:documentEpilogue" class="def">documentEpilogue</a> :: [<a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a>]</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Document" class="caption collapser" onclick="toggleSection('i:Document')">Instances</p><div id="section.i:Document" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Document">Document</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Document">Document</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Document">Document</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Document">Document</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-blaze-markup-doc/html/Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="Text-XML.html#t:Document">Document</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Document">Document</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Prologue" class="def">Prologue</a>  </p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Prologue" class="def">Prologue</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:prologueBefore" class="def">prologueBefore</a> :: [<a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a>]</dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:prologueDoctype" class="def">prologueDoctype</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML.html#t:Doctype">Doctype</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:prologueAfter" class="def">prologueAfter</a> :: [<a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a>]</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Prologue" class="caption collapser" onclick="toggleSection('i:Prologue')">Instances</p><div id="section.i:Prologue" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Prologue">Prologue</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Prologue">Prologue</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:Prologue">Prologue</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Prologue">Prologue</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Prologue">Prologue</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Prologue">Prologue</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Instruction" class="def">Instruction</a>  </p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Instruction" class="def">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:instructionTarget" class="def">instructionTarget</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:instructionData" class="def">instructionData</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Instruction" class="caption collapser" onclick="toggleSection('i:Instruction')">Instances</p><div id="section.i:Instruction" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Miscellaneous" class="def">Miscellaneous</a>  </p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:MiscInstruction" class="def">MiscInstruction</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:MiscComment" class="def">MiscComment</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Miscellaneous" class="caption collapser" onclick="toggleSection('i:Miscellaneous')">Instances</p><div id="section.i:Miscellaneous" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Miscellaneous">Miscellaneous</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Node" class="def">Node</a>  <a href="src/Text-XML.html#Node" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:NodeElement" class="def">NodeElement</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:NodeInstruction" class="def">NodeInstruction</a> <a href="Text-XML.html#t:Instruction">Instruction</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:NodeContent" class="def">NodeContent</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:NodeComment" class="def">NodeComment</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Node" class="caption collapser" onclick="toggleSection('i:Node')">Instances</p><div id="section.i:Node" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Node">Node</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Node">Node</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:Node">Node</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Node">Node</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Node">Node</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-blaze-markup-doc/html/Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="Text-XML.html#t:Node">Node</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Node">Node</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Element" class="def">Element</a>  <a href="src/Text-XML.html#Element" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Element" class="def">Element</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:elementName" class="def">elementName</a> :: <a href="Text-XML.html#t:Name">Name</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:elementAttributes" class="def">elementAttributes</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML.html#t:Name">Name</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:elementNodes" class="def">elementNodes</a> :: [<a href="Text-XML.html#t:Node">Node</a>]</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Element" class="caption collapser" onclick="toggleSection('i:Element')">Instances</p><div id="section.i:Element" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-blaze-markup-doc/html/Text-Blaze.html#t:ToMarkup">ToMarkup</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc"><p>Note that the special element name
 <code>{http:<em></em>www.snoyman.com/xml2html}ie-cond</code> with the single attribute <code>cond</code>
 is used to indicate an IE conditional comment.
</p></td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Element">Element</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Name" class="def">Name</a>  </p><div class="doc"><p>A fully qualified name.
</p><p>Prefixes are not semantically important; they are included only to
 simplify pass-through parsing. When comparing names with <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a></code> or <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a></code>
 methods, prefixes are ignored.
</p><p>The <code>IsString</code> instance supports Clark notation; see
 <a href="http://www.jclark.com/xml/xmlns.htm">http://www.jclark.com/xml/xmlns.htm</a> and
 <a href="http://infohost.nmt.edu/tcc/help/pubs/pylxml/etree-QName.html">http://infohost.nmt.edu/tcc/help/pubs/pylxml/etree-QName.html</a>. Use
 the <code>OverloadedStrings</code> language extension for very simple <code>Name</code>
 construction:
</p><pre> myname :: Name
 myname = &quot;{http://example.com/ns/my-namespace}my-name&quot;
</pre></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Name" class="def">Name</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:nameLocalName" class="def">nameLocalName</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:nameNamespace" class="def">nameNamespace</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:namePrefix" class="def">namePrefix</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Name" class="caption collapser" onclick="toggleSection('i:Name')">Instances</p><div id="section.i:Name" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Name">Name</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Name">Name</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:Name">Name</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Name">Name</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Name">Name</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:IsString">IsString</a> <a href="Text-XML.html#t:Name">Name</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Name">Name</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Doctype" class="def">Doctype</a>  </p><div class="doc"><p>Note: due to the incredible complexity of DTDs, this type only supports
 external subsets. I've tried adding internal subset types, but they
 quickly gain more code than the rest of this module put together.
</p><p>It is possible that some future version of this library might support
 internal subsets, but I am no longer actively working on adding them.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Doctype" class="def">Doctype</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:doctypeName" class="def">doctypeName</a> :: <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:doctypeID" class="def">doctypeID</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Doctype" class="caption collapser" onclick="toggleSection('i:Doctype')">Instances</p><div id="section.i:Doctype" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:Doctype">Doctype</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:Doctype">Doctype</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:Doctype">Doctype</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:Doctype">Doctype</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:Doctype">Doctype</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:Doctype">Doctype</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ExternalID" class="def">ExternalID</a>  </p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SystemID" class="def">SystemID</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PublicID" class="def">PublicID</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:ExternalID" class="caption collapser" onclick="toggleSection('i:ExternalID')">Instances</p><div id="section.i:ExternalID" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Data.html#t:Data">Data</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/deepseq-1.3.0.1/Control-DeepSeq.html#t:NFData">NFData</a> <a href="Text-XML.html#t:ExternalID">ExternalID</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:2">Parsing
</h1><h2 id="g:3">Files
</h2><div class="top"><p class="src"><a name="v:readFile" class="def">readFile</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-system-filepath-doc/html/Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#readFile" class="link">Source</a></p></div><h2 id="g:4">Bytes
</h2><div class="top"><p class="src"><a name="v:parseLBS" class="def">parseLBS</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a> <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#parseLBS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseLBS_" class="def">parseLBS_</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> -&gt; <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#parseLBS_" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sinkDoc" class="def">sinkDoc</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m =&gt; <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#sinkDoc" class="link">Source</a></p></div><h2 id="g:5">Text
</h2><div class="top"><p class="src"><a name="v:parseText" class="def">parseText</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a> <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#parseText" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:parseText_" class="def">parseText_</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a> -&gt; <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#parseText_" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sinkTextDoc" class="def">sinkTextDoc</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m =&gt; <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> m <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#sinkTextDoc" class="link">Source</a></p></div><h2 id="g:6">Other
</h2><div class="top"><p class="src"><a name="v:fromEvents" class="def">fromEvents</a> :: <a href="/usr/share/doc/libghc-resourcet-doc/html/Control-Monad-Trans-Resource.html#t:MonadThrow">MonadThrow</a> m =&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:Consumer">Consumer</a> <a href="Text-XML-Stream-Parse.html#t:EventPos">EventPos</a> m <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#fromEvents" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:UnresolvedEntityException" class="def">UnresolvedEntityException</a>  <a href="src/Text-XML.html#UnresolvedEntityException" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:UnresolvedEntityException" class="def">UnresolvedEntityException</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:UnresolvedEntityException" class="caption collapser" onclick="toggleSection('i:UnresolvedEntityException')">Instances</p><div id="section.i:UnresolvedEntityException" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:UnresolvedEntityException">UnresolvedEntityException</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:UnresolvedEntityException">UnresolvedEntityException</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Text-XML.html#t:UnresolvedEntityException">UnresolvedEntityException</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:XMLException" class="def">XMLException</a>  <a href="src/Text-XML.html#XMLException" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:InvalidXMLFile" class="def">InvalidXMLFile</a> <a href="/usr/share/doc/libghc-system-filepath-doc/html/Filesystem-Path.html#t:FilePath">FilePath</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:SomeException">SomeException</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:XMLException" class="caption collapser" onclick="toggleSection('i:XMLException')">Instances</p><div id="section.i:XMLException" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Text-XML.html#t:XMLException">XMLException</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="Text-XML.html#t:XMLException">XMLException</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Control-Exception-Base.html#t:Exception">Exception</a> <a href="Text-XML.html#t:XMLException">XMLException</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><h1 id="g:7">Rendering
</h1><div class="top"><p class="src"><a name="v:writeFile" class="def">writeFile</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="/usr/share/doc/libghc-system-filepath-doc/html/Filesystem-Path.html#t:FilePath">FilePath</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Text-XML.html#writeFile" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:renderLBS" class="def">renderLBS</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a><a href="src/Text-XML.html#renderLBS" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:renderText" class="def">renderText</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Lazy-Internal.html#t:Text">Text</a><a href="src/Text-XML.html#renderText" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:renderBytes" class="def">renderBytes</a> :: (MonadBase base m, PrimMonad base) =&gt; <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/libghc-conduit-doc/html/Data-Conduit.html#t:ConduitM">ConduitM</a> a <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> m ()<a href="src/Text-XML.html#renderBytes" class="link">Source</a></p></div><h1 id="g:8">Settings
</h1><div class="top"><p class="src"><a name="v:def" class="def">def</a> :: <a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> a =&gt; a</p></div><h2 id="g:9">Parsing
</h2><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ParseSettings" class="def">ParseSettings</a>  <a href="src/Text-XML-Stream-Parse.html#ParseSettings" class="link">Source</a></p><div class="subs instances"><p id="control.i:ParseSettings" class="caption collapser" onclick="toggleSection('i:ParseSettings')">Instances</p><div id="section.i:ParseSettings" class="show"><table><tr><td class="src"><a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> <a href="Text-XML.html#t:ParseSettings">ParseSettings</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:psDecodeEntities" class="def">psDecodeEntities</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="Text-XML-Stream-Parse.html#t:DecodeEntities">DecodeEntities</a><a href="src/Text-XML-Stream-Parse.html#psDecodeEntities" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:psRetainNamespaces" class="def">psRetainNamespaces</a> :: <a href="Text-XML.html#t:ParseSettings">ParseSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Text-XML-Stream-Parse.html#psRetainNamespaces" class="link">Source</a></p><div class="doc"><p>Whether the original xmlns attributes should be retained in the parsed
 values. For more information on motivation, see:
</p><p><a href="https://github.com/snoyberg/xml/issues/38">https://github.com/snoyberg/xml/issues/38</a>
</p><p>Default: False
</p><p>Since 1.2.1
</p></div></div><h3 id="g:10">Entity decoding
</h3><div class="top"><p class="src"><a name="v:decodeXmlEntities" class="def">decodeXmlEntities</a> :: <a href="Text-XML-Stream-Parse.html#t:DecodeEntities">DecodeEntities</a><a href="src/Text-XML-Stream-Parse.html#decodeXmlEntities" class="link">Source</a></p><div class="doc"><p>Default implementation of <code><a href="Text-XML-Stream-Parse.html#t:DecodeEntities">DecodeEntities</a></code>: handles numeric entities and
 the five standard character entities (lt, gt, amp, quot, apos).
</p></div></div><div class="top"><p class="src"><a name="v:decodeHtmlEntities" class="def">decodeHtmlEntities</a> :: <a href="Text-XML-Stream-Parse.html#t:DecodeEntities">DecodeEntities</a><a href="src/Text-XML-Stream-Parse.html#decodeHtmlEntities" class="link">Source</a></p><div class="doc"><p>HTML4-compliant entity decoder. Handles numerics, the five standard
 character entities, and the additional 248 entities defined by HTML 4 and
 XHTML 1.
</p><p>Note that HTML 5 introduces a drastically larger number of entities, and
 this code does not recognize most of them.
</p></div></div><h2 id="g:11">Rendering
</h2><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:RenderSettings" class="def">RenderSettings</a>  <a href="src/Text-XML-Stream-Render.html#RenderSettings" class="link">Source</a></p><div class="subs instances"><p id="control.i:RenderSettings" class="caption collapser" onclick="toggleSection('i:RenderSettings')">Instances</p><div id="section.i:RenderSettings" class="show"><table><tr><td class="src"><a href="/usr/share/doc/libghc-data-default-doc/html/Data-Default.html#t:Default">Default</a> <a href="Text-XML.html#t:RenderSettings">RenderSettings</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:rsPretty" class="def">rsPretty</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Text-XML-Stream-Render.html#rsPretty" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:rsNamespaces" class="def">rsNamespaces</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; [(<a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]<a href="src/Text-XML-Stream-Render.html#rsNamespaces" class="link">Source</a></p><div class="doc"><p>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.
</p></div></div><div class="top"><p class="src"><a name="v:rsAttrOrder" class="def">rsAttrOrder</a> :: <a href="Text-XML.html#t:RenderSettings">RenderSettings</a> -&gt; <a href="Text-XML.html#t:Name">Name</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML.html#t:Name">Name</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> -&gt; [(<a href="Text-XML.html#t:Name">Name</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]<a href="src/Text-XML-Stream-Render.html#rsAttrOrder" class="link">Source</a></p><div class="doc"><p>Specify how to turn the unordered attributes used by the <a href="Text-XML.html">Text.XML</a>
 module into an ordered list.
</p></div></div><div class="top"><p class="src"><a name="v:orderAttrs" class="def">orderAttrs</a> :: [(<a href="Text-XML.html#t:Name">Name</a>, [<a href="Text-XML.html#t:Name">Name</a>])] -&gt; <a href="Text-XML.html#t:Name">Name</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Map-Lazy.html#t:Map">Map</a> <a href="Text-XML.html#t:Name">Name</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a> -&gt; [(<a href="Text-XML.html#t:Name">Name</a>, <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>)]<a href="src/Text-XML-Stream-Render.html#orderAttrs" class="link">Source</a></p><div class="doc"><p>Convenience function to create an ordering function suitable for
 use as the value of <code><a href="Text-XML.html#v:rsAttrOrder">rsAttrOrder</a></code>. The ordering function is created
 from an explicit ordering of the attributes, specified as a list of
 tuples, as follows: In each tuple, the first component is the
 <code><a href="Text-XML.html#t:Name">Name</a></code> of an element, and the second component is a list of
 attributes names. When the given element is rendered, the
 attributes listed, when present, appear first in the given order,
 followed by any other attributes in arbitrary order. If an element
 does not appear, all of its attributes are rendered in arbitrary
 order.
</p></div></div><h1 id="g:12">Conversion
</h1><div class="top"><p class="src"><a name="v:toXMLDocument" class="def">toXMLDocument</a> :: <a href="Text-XML.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Document">Document</a><a href="src/Text-XML.html#toXMLDocument" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fromXMLDocument" class="def">fromXMLDocument</a> :: <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Document">Document</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>) <a href="Text-XML.html#t:Document">Document</a><a href="src/Text-XML.html#fromXMLDocument" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toXMLNode" class="def">toXMLNode</a> :: <a href="Text-XML.html#t:Node">Node</a> -&gt; <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Node">Node</a><a href="src/Text-XML.html#toXMLNode" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fromXMLNode" class="def">fromXMLNode</a> :: <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Node">Node</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>) <a href="Text-XML.html#t:Node">Node</a><a href="src/Text-XML.html#fromXMLNode" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toXMLElement" class="def">toXMLElement</a> :: <a href="Text-XML.html#t:Element">Element</a> -&gt; <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Element">Element</a><a href="src/Text-XML.html#toXMLElement" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:fromXMLElement" class="def">fromXMLElement</a> :: <a href="/usr/share/doc/libghc-xml-types-doc/html/Data-XML-Types.html#t:Element">Element</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Either.html#t:Either">Either</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/containers-0.5.0.0/Data-Set.html#t:Set">Set</a> <a href="/usr/share/doc/libghc-text-doc/html/Data-Text-Internal.html#t:Text">Text</a>) <a href="Text-XML.html#t:Element">Element</a><a href="src/Text-XML.html#fromXMLElement" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>