k^      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLM N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~  'Literal translation from pure strings. GThis can only work, if the string does not contain special characters.  default routine @Errors in on resolution of references yield undefined elements. OInterpret the XML string as mixture of ISO-Latin-1 characters and XML entities &and convert that to a Unicode string. IInterpret the XML string as mixture of UTF-8 characters and XML entities &and convert that to a Unicode string. NCaution: There is a memory leak for the case that entity references are huge. JConsider the XmlString as a mixture of XML entities and UTF-8 characters. 5Replace UTF-8 characters by Unicode representations.     'Literal translation from pure strings. GThis can only work, if the string does not contain special characters. default routine  1Decode plain characters using the given decoder, and decode entities by HXT's XML entity table. DDecoding errors for both conversions are embedded where they occur. !"Convert characters to lower case. AThis uses ISO latin encoding and may fail for exotic characters. "#$%  !"#$%  !"#$%  !"#$%&'()*+&'()*+&'()*+&'()*+,-.,-.,-.,-./0123456789:-process the attribute list of a specific tag ;<=-process the attribute list of a specific tag >?@A/0123456789:;<=>?@A0123/456789:;<=>?@A/0123123456789:;<=>?@A BCDEFGHIJKL BCDEFGHIJKL BDCEFGHIJKL BDCCDEFGHIJKL MNOPQRST4Process the subtrees for which the predicate holds. 9If the predicate matches subtrees of a matching subtree, !the sub-subtrees are not mapped. UVWXYZ[\]^_MNOPQRSTUVWXYZ[\]^_PMONQRSTUVWXYZ[\]^_MONNOPQRSTUVWXYZ[\]^_ D`abcdefghijklmnopqrsBuild some textual content. tuvwxyz{|}~*If the Tree is a Leaf, then return False. .Otherwise return the result of the predicate. You can e.g. filter text1  b> text2 </b text3 to text1 text2 text3 by filterTag (checkTagName (b/=)). 2Find all branches where the predicate applies and :return a list of matching sub-trees in depth-first order.  Example: !filterTagsFlatten (checkTagName (meta==)) merge subsequent string leafs /Process all sub-tree lists in bottom-up order. EUse ASCII characters, XML entity references and character references for representing strings. That'$s not human readable, but portable. 0Decode characters like those from UTF-8 scheme. 8Conversion errors are appended as warnings to the tree. D`abcdefghijklmnopqrstuvwxyz{|}~Dlmnijkchgfedbopqrstuvwxyz{|}~a`D`abchgfeddefghijkjklmnmnopqrstuvwxyz{|}~ 5Extract META tags which contain HTTP-EQUIV attribute ,and present these values like HTTP headers. 5Convert special characters of XmlString into Unicode :according to the encoding given in a META HTTP-EQUIV tag.  not xhtml: show  br xhtml: show  br/ (Unfortunately we cannot generally merge  tag></tag>@ to @<tag/ %since browsers expect e.g. separated  div></div.  <Ignores all non-table-row-tags and all non-table-cell-tags. lstuvwxyzlstuvwxyz /A TagSoup could represent multiple HTML trees, %e.g. with some introducing comments.  1Lift our XML filters to HXT document processors. &Name of root tag for processing, e.g. html. 8 That tag must be in the first level. 5 It is an unchecked run-time error ? if it is missing or occurs more than once. Tidy a piece of HTML code. & -> &amp;   - &lt; 3unquoted tag attribute values: size=-1 -> size=-1 insert omitted closing tags Like 'Text.XML.HXT.DOM.XmlTreeFunctions.xshow &but it shows empty tags the HTML way. E.g. it emits  br>@ instead of @<br\/,  .noscript><\/noscript>@ instead of @<noscript\/. Many browsers prefer that. 9Search for a META tag for the encoding of the HTML text. EGuess the encoding from the META-HTTP-EQUIV attribute, if available. $Otherwise fall back to ISO-Latin-1. =Adaption of Text.XML.HXT.Parser.MainFunctions.getXmlDocument An input handler alternative ,to Text.XML.HXT.Parser.ProtocolHandlerFile. ,It returns the argument string as something 0that can be further processed by HXT functions. <Adaption of Text.XML.HXT.Parser.MainFunctions.parseDocument KCopy of Text.XML.HXT.Parser.MainFunctions.addOptions add addDefaultOptions  :Copy of Text.XML.HXT.Parser.MainFunctions.processDocument ALift a filter of HaXml trees to a processor of a HaXml document. cf. !Text.XML.HaXml.Wrappers.onContent    /A TagSoup could represent multiple HTML trees, %e.g. with some introducing comments.     !"#$%&'()*+,-./0123!"$4%'56789:;<=>?@;A<B!CDEFGHIJ=KLMNOPQR!STUVWXYZ[\ ] S T ! U ^ V _ ` W X a b c Y Z d [ \ e B f S g h i j k T l m ! C n o p = Q q r s t u v w x y z { | } ~  V Y d R R ! C = R R!yz{|}=R= wraxml-0.4.2Text.HTML.WraXML.EntityText.XML.WraXML.Position.HaXmlText.XML.WraXML.StringText.HTML.WraXML.StringText.XML.WraXML.String.HaXmlText.XML.WraXML.String.HXTText.XML.WraXML.ElementData.Tree.BranchLeafData.Tree.BranchLeafLabelText.XML.WraXML.TreeText.HTML.WraXML.TreeText.XML.WraXML.DocumentText.HTML.WraXML.DocumentText.HTML.WraXML.TableText.XML.WraXML.Tree.LiteralText.XML.WraXML.Tree.TagSoup Text.XML.WraXML.Document.TagSoupText.XML.WraXML.Tree.HXTText.HTML.WraXML.Tree.HXTText.XML.WraXML.Tree.HaXmlText.XML.WraXML.Tree.Tagchup Text.XML.WraXML.Document.TagchupText.XML.WraXML.Tree.LazyParserText.XML.WraXML.Utilityxml-basic-0.1.1Text.HTML.Basic.Entity mapNameToChar toPositionName mapCharToNameAtomEmbeddedExceptionsT fromStringdiffFromStringfromUnicodeStringtoUnicodeStringOrFormattoUnicodeStringEmbedMessagetoUnicodeStringtoUnicodeStringEmbedExceptionisoLatin1ToUnicodeStringutf8ToUnicodeStringreadHexparseparseAux reduceRefsreplaceUTF8ByUnicodemapUnicodeRuns uStringWithErrorsMergePlainCharsliftFromUnicodeliftFromUnicodeA!fromUnicodeStringInternetExploder!toUnicodeStringDecodingEmbedErrortoLowertoUppertoCanonicalUnicodeStringequalIgnoreCaseelemIgnoreCase toXmlString fromXmlStringlift refToXmlAtomcharFromXmlAtom'charFromXmlAtom toXmlString'FilterConsname_ attributes_consname attributes checkNamecheckAttributes processAttrsprocessAttrValueprocessAttrValueCond processAttrsAprocessAttrValueAprocessAttrValueCondAliftAformatLeafBranchmapmapCondfoldswitch allSubTreesmapAfoldAfoldMElemmapLabel mapSubTrees filterBranch foldLabel switchLabel switchElemmapCondAFilterAAttributePlainWarningPICDataCommentTextTag getElementunwrapwrapwrap2literal literalIndexcomment commentIndexwarning warningIndexcdata cdataIndex processingprocessingIndextagtagAttr tagIndexAttr liftTransliftText liftTextA liftElement liftElementAcheckTagmaybeTag maybeText maybeTextLeafmapTextmapIndexmapTag filterTagfilterTagsFlattenfilterElementsFlatten mergeStringsmergeTopStringsprocessAllSubTreesprocessSubTreesprocessSubTreesAttrsmapTextAunescapeescapedecodeSpecialCharsmaybeDecodeSpecialCharsdecodeSpecialCharsDecoder decodeAttrs decodeAttrmaybeDecodeUTF8Chars formatMany formatBranch formatLeaffindMetaEncodinggetMetaHTTPHeadersdecodeSpecialCharsMetaEncodingformatManyXHTML formatXHTMLformatBranchXHTMLformatBranchGenxmlDeclarationdocTypecontentformatXMLDeclaration formatDocTypesimpleFromRows simpleFromRowParserXmlTreePosTagdefaultFilename attachPos removeMetaPostoXmlTreesString toXmlTreesAux parseBranch parseSubTreesparseTerminator parseOptionsexample dropSpacewithoutLeadingSpace toXmlDocumenttoXmlDocumentString fromXmlTree toXmlTreeliftFilterToDocument checkTagNameErrorMsgtidyfromHTMLStringMetaEncodingfromHTMLString"errorAnnFromHTMLStringMetaEncodingerrorAnnFromHTMLStringOptmultiFromXmlTree toXmlTree' onContent processWith fromElementfromLeafliftElementFilterliftElementCheck toXmlTrees StringSpace isAllSpace CharSpaceisSpaceXmlDocforcemanyFinallyAppendmanyLazycompose mkHXTName mkHXTAttrs formatTrees formatTree formatQNamexmlTreesFromHTMLStringfromHTMLStringOptgetStringContents parseDocument addOptionsaddDefaultOptionsprocessDocument