hxt-9.3.1.9: A collection of tools for processing XML with Haskell.

Portabilityportable
Stabilitystable
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Safe HaskellSafe-Inferred

Text.XML.HXT.Parser.XmlCharParser

Description

UTF-8 character parser and simple XML token parsers

Synopsis

Documentation

type XParser s a = GenParser Char (XPState s) aSource

data XPState s Source

Constructors

XPState 

Fields

xps_normalizeNewline :: !Bool
 
xps_userState :: s
 

xmlChar :: XParser s UnicodeSource

parse a single Unicode character

xmlNameChar :: XParser s UnicodeSource

parse a XML name character

xmlNameStartChar :: XParser s UnicodeSource

parse a XML name start character

xmlNCNameChar :: XParser s UnicodeSource

parse a XML NCName character

xmlNCNameStartChar :: XParser s UnicodeSource

parse a XML NCName start character

xmlLetter :: XParser s UnicodeSource

parse a XML letter character

xmlSpaceChar :: XParser s CharSource

White Space (2.3)

end of line handling (2.11) will be done before or with xmlCRLFChar parser

xmlCRLFChar :: XParser s CharSource

White Space Normalization

end of line handling (2.11) #x0D and #x0D#x0A are mapped to #x0A