Module Ez_html.Xml_lexer
type error
=
|
EUnterminatedComment
|
EUnterminatedString
|
EIdentExpected
|
ECloseExpected
|
ENodeExpected
|
EAttributeNameExpected
|
EAttributeValueExpected
|
EUnterminatedEntity
type dtd_error
=
|
EInvalidDTDDecl
|
EInvalidDTDTag
|
EDTDItemExpected
|
EInvalidDTDElement
|
EInvalidDTDAttribute
type dtd_decl
=
|
DTDFile of string
|
DTDData of Xml_types.dtd
type token
=
|
Tag of string * (string * string) list * bool
|
PCData of string
|
Endtag of string
|
DocType of string * dtd_decl
|
Eof
type pos
= int * int * int * int
val init : Stdlib.Lexing.lexbuf -> unit
val close : Stdlib.Lexing.lexbuf -> unit
val token : Stdlib.Lexing.lexbuf -> token
val dtd : Stdlib.Lexing.lexbuf -> Xml_types.dtd
val pos : Stdlib.Lexing.lexbuf -> pos
val restore : pos -> unit