package plist-xml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This library references the Markup.ml library. See also the documentation for that library.

type t = [
  1. | `Bool of bool
  2. | `Data of string
  3. | `Date of float * float option
    (*

    (timestamp, timezone)

    *)
  4. | `Float of float
  5. | `Int of int
  6. | `String of string
  7. | `Array of t list
    (*

    Array

    *)
  8. | `Dict of (string * t) list
    (*

    Dictionary

    *)
]

Plist values.

Convert a plist into XML signals.

exception Parse_error of string

Exception raised upon a parse error. The error message is purely informational and you should not pattern match on it, as it is subject to change.

module type IO = sig ... end

The module type of synchronous or asynchronous I/O.

module type S = sig ... end
module Make (IO : IO) : S with type s = IO.s and type 'a io = 'a IO.io

Create a plist parser given an I/O implementation, such as synchronous I/O or Lwt.

include S with type s := Markup.sync and type 'a io := 'a
val plist_of_stream_exn : (Markup.content_signal, Markup.sync) Markup.stream -> t

Raises Parse_error upon failure.

val parse_exn : ?report:(Markup.location -> Markup.Error.t -> unit) -> ?encoding:Markup.Encoding.t -> ?namespace:(string -> string option) -> ?entity:(string -> string option) -> ?context:[< `Document | `Fragment ] -> (char, Markup.sync) Markup.stream -> t

Raises Parse_error upon failure. See documentation for Markup.parse_xml for labeled parameter information.

OCaml

Innovation. Community. Security.