/usr/share/doc/libghc-haxml-doc/html/Text-XML-HaXml-SAX.html is in libghc-haxml-doc 1:1.25.3-4build1.
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 | <!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.HaXml.SAX</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-HaXml-SAX.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Text-XML-HaXml-SAX.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">HaXml-1.25.3: Utilities for manipulating XML documents</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Text.XML.HaXml.SAX</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A streaming XML parser, using a method known as SAX. SAX isn't really a
standard, but an implementation, so it's just an "SAX-like" parser.
This module allows you parse an XML document without having to evaluate
it as a whole. This is needed for protocols like jabber, which use xml
streams for communication.</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:SaxElement">SaxElement</a><ul class="subs"><li>= <a href="#v:SaxDocTypeDecl">SaxDocTypeDecl</a> <a href="Text-XML-HaXml-Types.html#t:DocTypeDecl">DocTypeDecl</a></li><li>| <a href="#v:SaxProcessingInstruction">SaxProcessingInstruction</a> <a href="Text-XML-HaXml-Types.html#t:ProcessingInstruction">ProcessingInstruction</a></li><li>| <a href="#v:SaxComment">SaxComment</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></li><li>| <a href="#v:SaxElementOpen">SaxElementOpen</a> <a href="Text-XML-HaXml-Types.html#t:Name">Name</a> [<a href="Text-XML-HaXml-Types.html#t:Attribute">Attribute</a>]</li><li>| <a href="#v:SaxElementClose">SaxElementClose</a> <a href="Text-XML-HaXml-Types.html#t:Name">Name</a></li><li>| <a href="#v:SaxElementTag">SaxElementTag</a> <a href="Text-XML-HaXml-Types.html#t:Name">Name</a> [<a href="Text-XML-HaXml-Types.html#t:Attribute">Attribute</a>]</li><li>| <a href="#v:SaxCharData">SaxCharData</a> <a href="Text-XML-HaXml-Types.html#t:CharData">CharData</a></li><li>| <a href="#v:SaxReference">SaxReference</a> <a href="Text-XML-HaXml-Types.html#t:Reference">Reference</a></li></ul></li><li class="src short"><a href="#v:saxParse">saxParse</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -> ([<a href="Text-XML-HaXml-SAX.html#t:SaxElement">SaxElement</a>], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:SaxElement" class="def">SaxElement</a> <a href="src/Text-XML-HaXml-SAX.html#SaxElement" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SaxDocTypeDecl" class="def">SaxDocTypeDecl</a> <a href="Text-XML-HaXml-Types.html#t:DocTypeDecl">DocTypeDecl</a></td><td class="doc"><p>A doctype declaration occured(<!DOCTYPE>)</p></td></tr><tr><td class="src"><a name="v:SaxProcessingInstruction" class="def">SaxProcessingInstruction</a> <a href="Text-XML-HaXml-Types.html#t:ProcessingInstruction">ProcessingInstruction</a></td><td class="doc"><p>A processing instruction occured (<??>)</p></td></tr><tr><td class="src"><a name="v:SaxComment" class="def">SaxComment</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc"><p>A comment occured (<!-- -->)</p></td></tr><tr><td class="src"><a name="v:SaxElementOpen" class="def">SaxElementOpen</a> <a href="Text-XML-HaXml-Types.html#t:Name">Name</a> [<a href="Text-XML-HaXml-Types.html#t:Attribute">Attribute</a>]</td><td class="doc"><p>An element was opened (<>)</p></td></tr><tr><td class="src"><a name="v:SaxElementClose" class="def">SaxElementClose</a> <a href="Text-XML-HaXml-Types.html#t:Name">Name</a></td><td class="doc"><p>An element was closed (</>)</p></td></tr><tr><td class="src"><a name="v:SaxElementTag" class="def">SaxElementTag</a> <a href="Text-XML-HaXml-Types.html#t:Name">Name</a> [<a href="Text-XML-HaXml-Types.html#t:Attribute">Attribute</a>]</td><td class="doc"><p>An element without content occured (</>)</p></td></tr><tr><td class="src"><a name="v:SaxCharData" class="def">SaxCharData</a> <a href="Text-XML-HaXml-Types.html#t:CharData">CharData</a></td><td class="doc"><p>Some string data occured</p></td></tr><tr><td class="src"><a name="v:SaxReference" class="def">SaxReference</a> <a href="Text-XML-HaXml-Types.html#t:Reference">Reference</a></td><td class="doc"><p>A reference occured</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:saxParse" class="def">saxParse</a> <a href="src/Text-XML-HaXml-SAX.html#saxParse" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The filename</p></td></tr><tr><td class="src">-> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The content of the file</p></td></tr><tr><td class="src">-> ([<a href="Text-XML-HaXml-SAX.html#t:SaxElement">SaxElement</a>], <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a>)</td><td class="doc"><p>A tuple of the parsed elements and <code>Nothing</code>, if no
error occured, or <code>Just</code> <code>String</code> if an error occured.</p></td></tr></table></div><div class="doc"><p><code>saxParse file content</code> takes a filename and the string content of that
file and generates a stream of <code>SaxElement</code>s. If an error occurs, the
parsing stops and a string is returned using the <code>Maybe</code> type.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|