package xml-light

  1. Overview
  2. Docs
type error =
  1. | EUnterminatedComment
  2. | EUnterminatedString
  3. | EIdentExpected
  4. | ECloseExpected
  5. | ENodeExpected
  6. | EAttributeNameExpected
  7. | EAttributeValueExpected
  8. | EUnterminatedEntity
type dtd_error =
  1. | EInvalidDTDDecl
  2. | EInvalidDTDTag
  3. | EDTDItemExpected
  4. | EInvalidDTDElement
  5. | EInvalidDTDAttribute
exception Error of error
exception DTDError of dtd_error
type dtd_decl =
  1. | DTDFile of string
  2. | DTDData of Xml_light_types.dtd
type token =
  1. | Tag of string * (string * string) list * bool
  2. | PCData of string
  3. | Endtag of string
  4. | DocType of string * dtd_decl
  5. | Eof
type pos = int * int * int * int
val init : Lexing.lexbuf -> unit
val close : Lexing.lexbuf -> unit
val token : Lexing.lexbuf -> token
val pos : Lexing.lexbuf -> pos
val restore : pos -> unit
val error_pos_of_pos : pos -> Xml_light_errors.error_pos
OCaml

Innovation. Community. Security.