HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehxt-9.3.1.22Haskell2010

Text.XML.HXT.Parser.XmlParsec

Xml Parsec parser with pure filter interface

  • 35 values
  • Packagehxt-9.3.1.22
  • Exports35
  • LanguageHaskell2010
  • LicenceMIT
  • SourceXmlParsec.hs
valuexread :: String -> XmlTrees
#

the inverse function to xshow, (for XML content).

the string parameter is parsed with the XML content parser. result is the list of trees or in case of an error a single element list with the error message as node. No entity or character subtitution is done here, but the XML parser can do this for the predefined XML or the char references for performance reasons

see also: parseXmlContent

try to parse a xml encoding spec.

  • 1.parameter encParse : the parser for the encoding decl

  • 2.parameter root : a document root

  • returns : the same tree, but with an additional attribute "encoding" in the root node in case of a valid encoding spec else the unchanged tree