package ocaml-expat

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type expat_parser
val parser_create : encoding:string option -> expat_parser
val parser_create_ns : encoding:string option -> separator:char -> expat_parser
val external_entity_parser_create : expat_parser -> string option -> string option -> expat_parser
val parse : expat_parser -> string -> unit
val parse_sub : expat_parser -> string -> int -> int -> unit
val final : expat_parser -> unit
val set_start_element_handler : expat_parser -> (string -> (string * string) list -> unit) -> unit
val reset_start_element_handler : expat_parser -> unit
val set_end_element_handler : expat_parser -> (string -> unit) -> unit
val reset_end_element_handler : expat_parser -> unit
val set_character_data_handler : expat_parser -> (string -> unit) -> unit
val reset_character_data_handler : expat_parser -> unit
val set_processing_instruction_handler : expat_parser -> (string -> string -> unit) -> unit
val reset_processing_instruction_handler : expat_parser -> unit
val set_comment_handler : expat_parser -> (string -> unit) -> unit
val reset_comment_handler : expat_parser -> unit
val set_start_cdata_handler : expat_parser -> (unit -> unit) -> unit
val reset_start_cdata_handler : expat_parser -> unit
val set_end_cdata_handler : expat_parser -> (unit -> unit) -> unit
val reset_end_cdata_handler : expat_parser -> unit
val set_default_handler : expat_parser -> (string -> unit) -> unit
val reset_default_handler : expat_parser -> unit
val set_external_entity_ref_handler : expat_parser -> (string option -> string option -> string -> string option -> unit) -> unit
val reset_external_entity_ref_handler : expat_parser -> unit
val get_current_byte_index : expat_parser -> int
val get_current_column_number : expat_parser -> int
val get_current_line_number : expat_parser -> int
val get_current_byte_count : expat_parser -> int
type xml_error =
  1. | NONE
  2. | NO_MEMORY
  3. | SYNTAX
  4. | NO_ELEMENTS
  5. | INVALID_TOKEN
  6. | UNCLOSED_TOKEN
  7. | PARTIAL_CHAR
  8. | TAG_MISMATCH
  9. | DUPLICATE_ATTRIBUTE
  10. | JUNK_AFTER_DOC_ELEMENT
  11. | PARAM_ENTITY_REF
  12. | UNDEFINED_ENTITY
  13. | RECURSIVE_ENTITY_REF
  14. | ASYNC_ENTITY
  15. | BAD_CHAR_REF
  16. | BINARY_ENTITY_REF
  17. | ATTRIBUTE_EXTERNAL_ENTITY_REF
  18. | MISPLACED_XML_PI
  19. | UNKNOWN_ENCODING
  20. | INCORRECT_ENCODING
  21. | UNCLOSED_CDATA_SECTION
  22. | EXTERNAL_ENTITY_HANDLING
  23. | NOT_STANDALONE
  24. | UNEXPECTED_STATE
  25. | ENTITY_DECLARED_IN_PE
  26. | FEATURE_REQUIRES_XML_DTD
  27. | CANT_CHANGE_FEATURE_ONCE_PARSING
exception Expat_error of xml_error
val xml_error_to_string : xml_error -> string
val set_base : expat_parser -> string option -> unit
val get_base : expat_parser -> string option
type xml_param_entity_parsing_choice =
  1. | NEVER
  2. | UNLESS_STANDALONE
  3. | ALWAYS
val set_param_entity_parsing : expat_parser -> xml_param_entity_parsing_choice -> bool
val expat_version : unit -> string
OCaml

Innovation. Community. Security.