wraxml-0.4.2: Lazy wrapper to HaXML, HXT, TagSoup via custom XML tree structureSource codeContentsIndex
Text.HTML.WraXML.Tree.HXT
Synopsis
tidy :: String -> IO String
format :: XmlTree -> String
fromHTMLString :: String -> IO XmlTree
fromHTMLStringMetaEncoding :: String -> IO XmlTree
errorAnnFromHTMLStringMetaEncoding :: String -> IO (XmlTree, [ErrorMsg], Int)
errorAnnFromHTMLStringOpt :: Attributes -> String -> IO (XmlTree, [ErrorMsg], Int)
type ErrorMsg = (Int, String)
getMetaHTTPHeaders :: String -> IO [(String, String)]
Documentation
tidy :: String -> IO StringSource
Tidy a piece of HTML code. & -> & - < unquoted tag attribute values: size=-1 -> size=-1 insert omitted closing tags
format :: XmlTree -> StringSource
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.
fromHTMLString :: String -> IO XmlTreeSource
fromHTMLStringMetaEncoding :: String -> IO XmlTreeSource
Guess the encoding from the META-HTTP-EQUIV attribute, if available. Otherwise fall back to ISO-Latin-1.
errorAnnFromHTMLStringMetaEncoding :: String -> IO (XmlTree, [ErrorMsg], Int)Source
errorAnnFromHTMLStringOpt :: Attributes -> String -> IO (XmlTree, [ErrorMsg], Int)Source
Adaption of Text.XML.HXT.Parser.MainFunctions.getXmlDocument
type ErrorMsg = (Int, String)Source
getMetaHTTPHeaders :: String -> IO [(String, String)]Source
Produced by Haddock version 2.6.0