package piqilib

  1. Overview
  2. Docs
module C = Piqi_common
type xml_elem = Piqi_xml_type.xml_elem
type xml_parser = {
  1. input : Xmlm.input;
  2. fname : string;
}
val init_xml_parser : ?fname:string -> Xmlm.source -> xml_parser
val init_from_channel : ?fname:string -> in_channel -> xml_parser
val init_from_string : ?fname:string -> string -> xml_parser
val strip_whitespace : xml list -> xml list
val do_read_xml_obj : xml_parser -> xml
val read_xml_obj : xml_parser -> xml option
val ws : [> `Data of string ]
val nl : [> `Data of string ]
val indent_list : int -> [> `Data of string ] as 'a list -> 'a list
val indent_tree : xml -> xml
val gen_xml : ?pretty_print:bool -> ?nl:bool -> ?decl:bool -> Xmlm.dest -> xml -> unit
val xml_to_buffer : ?pretty_print:bool -> ?decl:bool -> Buffer.t -> xml -> unit
val xml_to_channel : ?pretty_print:bool -> out_channel -> xml -> unit
val xml_to_string : ?pretty_print:bool -> ?decl:bool -> xml -> string
val xml_of_string : string -> xml list
OCaml

Innovation. Community. Security.