package syndic

  1. Overview
  2. Docs

Common module for XML parsing.

type dtd = string option

The type for the optional DTD.

type pos = Xmlm.pos
type tag = Xmlm.tag
type t =
  1. | Node of pos * tag * t list
  2. | Data of pos * string

A XML tree.

val resolve : xmlbase:Uri.t option -> Uri.t -> Uri.t

resolve base uri resolve the uri against the possible base.

val get_position : t -> pos
val input_of_channel : Stdlib.in_channel -> Xmlm.input
val of_xmlm : Xmlm.input -> dtd * t

of_xmlm doc converts an XML document doc into a DTD and a tree representing the document.

val make_output : ?ns_prefix:(string -> string option) -> Xmlm.dest -> Xmlm.output
val to_xmlm : ?dtd:string -> t -> Xmlm.output -> unit
val to_string : ?ns_prefix:(string -> string option) -> t -> string
val to_buffer : ?ns_prefix:(string -> string option) -> t -> Stdlib.Buffer.t -> unit
OCaml

Innovation. Community. Security.