HaXmlParentContentsIndex
Text.XML.HaXml.Parse
Contents
Parse a whole document
Parse just a DTD
Description
A non-validating XML parser. For the input grammar, see http://www.w3.org/TR/REC-xml.
Synopsis
xmlParse :: String -> String -> Document
dtdParse :: String -> String -> Maybe DocTypeDecl
Parse a whole document
xmlParse :: String -> String -> Document
To parse a whole document, xmlParse file content takes a filename (for error reports) and the string content of that file.
Parse just a DTD
dtdParse :: String -> String -> Maybe DocTypeDecl
To parse just a DTD, dtdParse file content takes a filename (for error reports) and the string content of that file. If no DTD was found, you get Nothing rather than an error.
Produced by Haddock version 0.4