!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~indent before Pretty prints a stream of s into a stream of s. This 4 changes the meaning of some documents, by inserting/modifying whitespace. Same as , but produces a stream of s. Same as , but produces a stream of s. Render a stream of s into a stream of s. This function  wraps around  and , so it produces  optimally sized s with minimal buffer copying. The output is UTF8 encoded. Render a stream of s into a stream of s. This function  wraps around ,  and , so it  produces optimally sized s with minimal buffer copying. Render a stream of s into a stream of s. Builders are from D the blaze-builder package, and allow the create of optimally sized  s with minimal buffer copying. pretty print attributes? 5 IA monad for parsing attributes. By default, it requires you to deal with L all attributes present on an element, and will throw an exception if there # are unhandled attributes. Use the :, ; et al * functions for handling an attribute, and < if you would like to 0 skip the rest of the attributes on an element. !"#$%&'(GAutomatically determine which UTF variant is being used. This function K first checks for BOMs, removing them as necessary, and then check for the  equivalent of < ?xml for each of UTF-8, UTF-16LEBE, and UTF-32LEBE. It  defaults to assuming UTF-8. )Parses a byte stream into )s. This function is implemented fully in K Haskell using attoparsec-text for parsing. The produced error messages do  not give line/?column information, so you may prefer to stick with the parser G provided by libxml-enumerator. However, this has the advantage of not  relying on any C libraries. This relies on (& to determine character encoding, and *  to do the actual parsing. *Parses a character stream into  s. This function is implemented H fully in Haskell using attoparsec-text for parsing. The produced error  messages do not give line//column information, so you may prefer to stick F with the parser provided by libxml-enumerator. However, this has the . advantage of not relying on any C libraries. +KGrabs the next piece of content if available. This function skips over any M comments and instructions and concatenates all content until the next start  or end tag. ,?Grabs the next piece of content. If none if available, returns . ! This is simply a wrapper around +. -JThe most generic way to parse a tag. It takes a predicate for checking if " this is the correct tag name, an   for handling attributes, and ) then a parser for dealing with content. HThis function automatically absorbs its balancing closing tag, and will G throw an exception if not all of the attributes or child elements are 6 consumed. If you want to allow extra attributes, see <. KThis function automatically ignores comments, instructions and whitespace. .A simplified version of -+ which matches against boolean predicates. /A simplified version of -. which matches for specific tag names instead M of taking a predicate function. This is often sufficient, and when combined 5 with OverloadedStrings and the IsString instance of , can prove to be  very concise. 0JA further simplified tag parser, which requires that no attributes exist. 10Get the value of the first parser which returns . If no parsers  succeed (i.e., return ), this function returns .  orE a b = choose [a, b] 20Get the value of the first parser which returns . If no parsers  succeed (i.e., return ), this function returns . 3<Force an optional parser into a required parser. All of the -  functions, 2 and = deal with  parsers. Use this when you , want to finally force something to happen. Error message 4 The same as 5, but throws any exceptions. 55A helper function which reads a file from disk using  , detects  character encoding using (, parses the XML using ), and 1 then hands off control to your supplied parser. 6"Parse an event stream from a lazy . 7Same as 6, but throws exceptions. 89:BRequire that a certain attribute be present and return its value. ;.Return the value for an attribute if present. <GSkip the remaining attributes on an element. Since this will clear the ( list of attributes, you must call this after any calls to :,  ;, etc. =4Keep parsing elements as long as the parser returns . >Default implementation of : handles numeric entities and A the five standard character entities (lt, gt, amp, quot, apos).  !"#$%&'()*+,-./0123456789:;<=> )*(5467>-./0,+ :;98<12=3!%$#"&'  !%$#"&'"#$%&'()*+,-./0123456789:;<=>?@ABCDPretty prints via K. EFPretty prints via K. GHIJKLMNOPQ?@ABCDEFGHIJKLMNOPQCDABEFGHQPMNOJKL?@I?@@ABCDEFGHIJKLMNOPQ%RSTUVWXYZ[\]^_`abcdefghijklmnopqrsPretty prints via q. tuPretty prints via q. > >RSTUVWXYZ[\]^_`abcdefghijklmnopqrstu>^_`ab  Y]\[ZTUVWX >ijklmnoRSrstupqcfehdg$RSSTUVWXUVWXY]\[ZZ[\]^_`ab_`abcdefghijklmnopqrstu&vA cursor: contains an XML Y7 and pointers to its children, ancestors and siblings. wThe child axis. XPath:  8the child axis contains the children of the context node. xThe current node. y5Something that can be used in a predicate check as a boolean. z{4The type of an Axis that returns a list of Cursors.  They are roughly modeled after  http://www.w3.org/TR/xpath/#axes. Axes can be composed with  , where e.g. f >=> g means that on all results of  the f axis, the g9 axis will be applied, and all results joined together. ) Because Axis is just a type synonym for Cursor -> [Cursor], it is possible to use  other standard functions like  or  similarly. The operators ,  and 0 can be used to combine axes so that the second W axis works on the children, descendants, respectively the context node as well as its / descendants of the results of the first axis. The operators , ,  and 0 can be used to apply an axis (right-hand side) X to a cursor so that it is applied on the cursor itself, its children, its descendants, * respectively itself and its descendants. /Note that many of these operators also work on generalised Axes that can return F lists of something other than Cursors, for example Content elements. |_Cut a cursor off from its parent. The idea is to allow restricting the scope of queries on it. }(The parent axis. As described in XPath:  Hthe parent axis contains the parent of the context node, if there is one. ~#The preceding-sibling axis. XPath:  Xthe preceding-sibling axis contains all the preceding siblings of the context node [...]. #The following-sibling axis. XPath:  Xthe following-sibling axis contains all the following siblings of the context node [...].  Convert a _^ to a v&. It will point to the document root.  Convert a Y to a v (without parents). The preceding axis. XPath:  the preceding axis contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes. The following axis. XPath:  the following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes. The ancestor axis. XPath:   the ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include the root node, unless the context node is the root node. The descendant axis. XPath:  the descendant axis contains the descendants of the context node; a descendant is a child or a child of a child and so on; thus the descendant axis never contains attribute or namespace nodes. ZModify an axis by adding the context node itself as the first element of the result list. ICombine two axes so that the second works on the children of the results  of the first. LCombine two axes so that the second works on the descendants of the results  of the first. NCombine two axes so that the second works on both the result nodes, and their  descendants. Apply an axis to a v. #Apply an axis to the children of a v. &Apply an axis to the descendants of a v. Apply an axis to a v as well as its descendants. Filter cursors that don't pass a check. Filter nodes that don't pass a check. Filter elements that don'-t pass a check, and remove all non-elements. Filter elements that don'2t pass a name check, and remove all non-elements. 3Remove all non-elements. Compare roughly to XPath:  A node test * is true for any node of the principal node type. For example, child::* will select all element children of the context node [...]. <Select only those elements with a matching tag name. XPath:  A node test that is a QName is true if and only if the type of the node (see [5 Data Model]) is the principal node type and has an expanded-name equal to the expanded-name specified by the QName. .Select only text nodes, and directly give the Content values. XPath:  /The node test text() is true for any text node. "Note that this is not strictly an {', but will work with most combinators. VSelect attributes on the current element (or nothing if it is not an element). XPath:  |the attribute axis contains the attributes of the context node; the axis will be empty unless the context node is an element "Note that this is not strictly an {', but will work with most combinators. FThe return list of the generalised axis contains as elements lists of Content ; elements, each full list representing an attribute value. !vwxyz{|}~#yz{vwx|}~wx vwxwxyzz{|}~                       !"#$%&'()*+(,-./0123456789:;<=>?@ABCDEEFGHIJK<=L !"%#$MNOOPPQRSTUVWXYYZ[\]^_`abFG<=cdM#!HIJKefghijklmnopqrstuvwxyz{|}~2 'exml-enumerator-0.3.2Text.XML.Enumerator.CursorText.XML.Enumerator.ResolvedText.XML.Enumerator.RenderText.XML.Enumerator.ParseText.XML.Enumerator.DocumentText.XML.Enumerator.Tokenbase Control.Monad>=> xml-types-0.3Data.XML.Types prologueAfterprologueDoctypeprologueBeforePrologueinstructionDatainstructionTarget InstructionMiscInstruction MiscComment Miscellaneous namePrefix nameNamespace nameLocalNameName doctypeID doctypeNameDoctypeSystemIDPublicID ExternalID prettyBuilder prettyBytes prettyText renderBytes renderText renderBuilderDecodeEntities AttrParser XmlExceptionUnparsedAttributes InvalidEntityInvalidEndElementxmlErrorMessage xmlBadInput detectUtf parseBytes parseText contentMaybecontenttag tagPredicatetagName tagNoAttrorEchooseforce parseFile_ parseFileparseLBS parseLBS_optionalAttrRawrequireAttrRaw requireAttr optionalAttr ignoreAttrsmanydecodeEntitiesInvalidEventStreamreadFile readFile_ writeFilewritePrettyFile renderLBS prettyLBS lazyConsume fromEventstoEventsUnresolvedEntityExceptionElement elementNameelementAttributes elementNodesNode NodeComment NodeContentNodeInstruction NodeElementDocumentdocumentPrologue documentRootdocumentEpilogue toXMLDocument toXMLElement toXMLNodefromXMLDocumentfromXMLElement fromXMLNode parseEnum parseEnum_CursorchildnodeBooleanboolAxiscutparentprecedingSiblingfollowingSibling fromDocumentfromNode preceding followingancestor descendantorSelf&/&//&.//$|$/$//$.//check checkNode checkElement checkName anyElementelement attributeNSLevel defaultNSprefixes TAttributeTNameToken TokenCDATA TokenDoctype TokenComment TokenContentTokenEndElementTokenBeginElementTokenInstructionTokenBeginDocumentoneSpacetokenToBuilder tnameToText contentToText foldAttrsStackEventblaze-builder-0.3.0.1'Blaze.ByteString.Builder.Internal.TypesBuilderbytestring-0.9.1.10Data.ByteString.Internal ByteString text-0.11.1.1Data.Text.InternalText blaze-builder-enumerator-0.2.0.2#Blaze.ByteString.Builder.EnumeratorbuilderToByteString eventToToken nameToTName mkBeginToken newElemStack newAttrStack getPrefixprettify eventHead takeContents normalSpace cleanWhite runAttrParser ContentType NotContentIsError IsContentIgnore tokenToEvent tnameToName iterToken parseTokenparseAttribute parseName parseIdent parseContent skipSpacenewlinechar'empty Data.MaybeJustNothingMaybeenumerator-0.4.10Data.Enumerator.BinaryenumFileData.ByteString.Lazy.Internal enumSinglecontentsToText decodeChar compressNodeslbsEnumparent'precedingSibling'followingSibling' DiffCursorGHC.Base>>=GHC.List concatMap toCursor'