package syndic

  1. Overview
  2. Docs

Module Syndic.XMLSource

Common module for XML parsing.

Sourcetype dtd = string option

The type for the optional DTD.

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

A XML tree.

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

resolve base uri resolve the uri against the possible base.

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

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

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