<! attlist := ATTLIST
holds the next character
callback method invoked by MarkupParser after parsing comment .
content1 ::= '<' content1 | '&' charref .
'<' content1 ::= .
[22] prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? [23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>' [24] VersionInfo ::= S 'version' Eq ("'" VersionNum "'" | '"' VersionNum '"') [25] Eq ::= S? '=' S? [26] VersionNum ::= '1 .
callback method invoked by MarkupParser after parsing an element, between the elemStart and elemEnd callbacks
callback method invoked by MarkupParser after end-tag of element .
callback method invoked by MarkupParser after start-tag of element .
'<' element ::= xmlTag1 '>' { xmlExpr | '{' simpleExpr '}' } ETag | xmlTag1 '/' '>'
<! element := ELEMENT
<! element := ELEMENT
callback method invoked by MarkupParser after parsing entity ref .
externalID ::= SYSTEM S syslit PUBLIC S pubid S syslit
.
As the current code requires you to call nextch once manually after construction, this method formalizes that suboptimal reality .
stack of inputs
"rec-xml/#ExtSubset" pe references may not occur within markup declarations
These are 99% sure to be redundant but refactoring on the safe side .
Name ::= ( Letter | '_' ) (NameChar)*
NameChar ::= Letter | Digit | ' .
NameStart ::= ( Letter | '_' ) where Letter means in one of the Unicode general categories { Ll, Lu, Lo, Lt, Nl }
(#x20 | #x9 | #xD | #xA)+
(#x20 | #x9 | #xD | #xA)
Returns true if the encoding name is a valid IANA encoding .
returns true is this markup handler is validating
This method should log the message given as argument somewhere as a side-effect .
Create a lookahead reader which does not influence the input
this method assign the next character to ch and advances in input
'N' notationDecl ::= "OTATION"
parses document type declaration and assigns it to instance variable dtd .
holds the position in the source file
if true, does not remove surplus whitespace
callback method invoked by MarkupParser after parsing PI .
<? prolog ::= xml S? // this is a bit more lenient than necessary .
Apply a function and return the passed value
Execute body with a variable saved and restored after execution
attribute value, terminated by either ' or " .
callback method invoked by MarkupParser after parsing text .
prolog, but without standalone
holds temporary values of pos
attribute value, terminated by either ' or " .
parse attribute and create namespace scope, metadata [41] Attributes ::= { S Name Eq AttValue }
'<! CharData ::= [CDATA[ ( {char} - {char}"]]>"{char} ) ']]>'
CharRef ::= "&#" '0' .
Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'
scan [S] '=' [S]
[42] '<' xmlEndTag ::= '<' '/' Name S? '>'
entity value, terminated by either ' or " .
actually, Name ::= (Letter | '_' | ':') (NameChar)* but starting with ':' cannot happen Name ::= (Letter | '_') (NameChar)*
'?' {Char})]'?>'
scan [3] S ::= (#x20 | #x9 | #xD | #xA)+
skip optional space S?
parse character data .
<? prolog ::= xml S .
An XML Parser that preserves CDATA blocks and knows about HtmlEntities .
(c) David Pollak, 2007 WorldWide Conferencing, LLC.