package pxp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module StringMap : sig ... end
type ext_id = Pxp_core_types.A.ext_id =
  1. | System of string
  2. | Public of string * string
  3. | Anonymous
  4. | Private of private_id
val allocate_private_id : unit -> private_id
type resolver_id = Pxp_core_types.A.resolver_id = {
  1. rid_private : private_id option;
  2. rid_public : string option;
  3. rid_system : string option;
  4. rid_system_base : string option;
}
val resolver_id_of_ext_id : ext_id -> resolver_id
type dtd_id = Pxp_core_types.A.dtd_id =
  1. | External of ext_id
  2. | Derived of ext_id
  3. | Internal
type content_model_type = Pxp_core_types.A.content_model_type =
  1. | Unspecified
  2. | Empty
  3. | Any
  4. | Mixed of mixed_spec list
  5. | Regexp of regexp_spec
and mixed_spec = Pxp_core_types.A.mixed_spec =
  1. | MPCDATA
  2. | MChild of string
and regexp_spec = Pxp_core_types.A.regexp_spec =
  1. | Optional of regexp_spec
  2. | Repeated of regexp_spec
  3. | Repeated1 of regexp_spec
  4. | Alt of regexp_spec list
  5. | Seq of regexp_spec list
  6. | Child of string
type att_type = Pxp_core_types.A.att_type =
  1. | A_cdata
  2. | A_id
  3. | A_idref
  4. | A_idrefs
  5. | A_entity
  6. | A_entities
  7. | A_nmtoken
  8. | A_nmtokens
  9. | A_notation of string list
  10. | A_enum of string list
type att_default = Pxp_core_types.A.att_default =
  1. | D_required
  2. | D_implied
  3. | D_default of string
  4. | D_fixed of string
type att_value = Pxp_core_types.A.att_value =
  1. | Value of string
  2. | Valuelist of string list
  3. | Implied_value
class type collect_warnings = object ... end
type warning = [
  1. | `W_XML_version_not_supported of string
  2. | `W_code_point_cannot_be_represented of int
  3. | `W_element_mentioned_but_not_declared of string
  4. | `W_entity_declared_twice of string
  5. | `W_multiple_ATTLIST_declarations of string
  6. | `W_multiple_attribute_declarations of string * string
  7. | `W_name_is_reserved_for_extensions of string
]
class type symbolic_warnings = object ... end
val string_of_warning : warning -> string
val warn : symbolic_warnings option -> collect_warnings -> warning -> unit
type encoding = Netconversion.encoding
type rep_encoding = [
  1. | `Enc_cp1006
  2. | `Enc_cp437
  3. | `Enc_cp737
  4. | `Enc_cp775
  5. | `Enc_cp850
  6. | `Enc_cp852
  7. | `Enc_cp855
  8. | `Enc_cp856
  9. | `Enc_cp857
  10. | `Enc_cp860
  11. | `Enc_cp861
  12. | `Enc_cp862
  13. | `Enc_cp863
  14. | `Enc_cp864
  15. | `Enc_cp865
  16. | `Enc_cp866
  17. | `Enc_cp869
  18. | `Enc_cp874
  19. | `Enc_iso88591
  20. | `Enc_iso885910
  21. | `Enc_iso885913
  22. | `Enc_iso885914
  23. | `Enc_iso885915
  24. | `Enc_iso885916
  25. | `Enc_iso88592
  26. | `Enc_iso88593
  27. | `Enc_iso88594
  28. | `Enc_iso88595
  29. | `Enc_iso88596
  30. | `Enc_iso88597
  31. | `Enc_iso88598
  32. | `Enc_iso88599
  33. | `Enc_koi8r
  34. | `Enc_macroman
  35. | `Enc_usascii
  36. | `Enc_utf8
  37. | `Enc_windows1250
  38. | `Enc_windows1251
  39. | `Enc_windows1252
  40. | `Enc_windows1253
  41. | `Enc_windows1254
  42. | `Enc_windows1255
  43. | `Enc_windows1256
  44. | `Enc_windows1257
  45. | `Enc_windows1258
]
exception Validation_error of string
exception WF_error of string
exception Namespace_error of string
exception Error of string
exception Character_not_supported
exception At of string * exn
exception Undeclared
exception Method_not_applicable of string
exception Namespace_method_not_applicable of string
exception Not_competent
exception Not_resolvable of exn
exception Namespace_not_managed of string
exception Namespace_prefix_not_managed of string
exception Namespace_not_in_scope of string
val string_of_exn : exn -> string
type output_stream = [
  1. | `Out_buffer of Buffer.t
  2. | `Out_channel of out_channel
  3. | `Out_function of string -> int -> int -> unit
  4. | `Out_netchannel of Netchannels.out_obj_channel
]
val write : output_stream -> string -> int -> int -> unit
val make_probabilistic_pool : ?fraction:float -> int -> pool
val pool_string : pool -> string -> string
type config = {
  1. warner : collect_warnings;
  2. swarner : symbolic_warnings option;
  3. enable_pinstr_nodes : bool;
  4. enable_comment_nodes : bool;
  5. enable_super_root_node : bool;
  6. drop_ignorable_whitespace : bool;
  7. encoding : rep_encoding;
  8. recognize_standalone_declaration : bool;
  9. store_element_positions : bool;
  10. idref_pass : bool;
  11. validate_by_dfa : bool;
  12. accept_only_deterministic_models : bool;
  13. disable_content_validation : bool;
  14. name_pool : Pxp_core_types.I.pool;
  15. enable_name_pool_for_element_types : bool;
  16. enable_name_pool_for_attribute_names : bool;
  17. enable_name_pool_for_attribute_values : bool;
  18. enable_name_pool_for_pinstr_targets : bool;
  19. enable_namespace_processing : Pxp_dtd.namespace_manager option;
  20. escape_contents : (Pxp_lexer_types.token -> Pxp_entity_manager.entity_manager -> string) option;
  21. escape_attributes : (Pxp_lexer_types.token -> int -> Pxp_entity_manager.entity_manager -> string) option;
  22. debugging_mode : bool;
}
val default_config : config
val default_namespace_config : config
val from_channel : ?alt:Pxp_reader.resolver list -> ?system_id:string -> ?fixenc:encoding -> ?id:ext_id -> ?system_encoding:encoding -> in_channel -> source
val from_obj_channel : ?alt:Pxp_reader.resolver list -> ?system_id:string -> ?fixenc:encoding -> ?id:ext_id -> ?system_encoding:encoding -> Netchannels.in_obj_channel -> source
val from_string : ?alt:Pxp_reader.resolver list -> ?system_id:string -> ?fixenc:encoding -> string -> source
val from_file : ?alt:Pxp_reader.resolver list -> ?system_encoding:encoding -> ?enc:encoding -> string -> source
val open_source : config -> source -> bool -> Pxp_dtd.dtd -> Pxp_reader.resolver * Pxp_entity.entity
type entity_id = Pxp_lexer_types.entity_id
type entity = Pxp_entity.entity
type entry = [
  1. | `Entry_content of [ `Dummy ] list
  2. | `Entry_declarations of [ `Extend_dtd_fully | `Val_mode_dtd ] list
  3. | `Entry_document of [ `Extend_dtd_fully | `Parse_xml_decl | `Val_mode_dtd ] list
  4. | `Entry_element_content of [ `Dummy ] list
  5. | `Entry_expr of [ `Dummy ] list
]
type event =
  1. | E_start_doc of string * Pxp_dtd.dtd
  2. | E_end_doc of string
  3. | E_start_tag of string * (string * string) list * Pxp_dtd.namespace_scope option * Pxp_lexer_types.entity_id
  4. | E_end_tag of string * Pxp_lexer_types.entity_id
  5. | E_char_data of string
  6. | E_pinstr of string * string * Pxp_lexer_types.entity_id
  7. | E_comment of string
  8. | E_start_super
  9. | E_end_super
  10. | E_position of string * int * int
  11. | E_error of exn
  12. | E_end_of_stream