ocamlnet

Internet protocols (HTTP, CGI, e-mail etc.) and helper data structures
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library netstring
Module Nethtml
type document =
| Element of string * (string * string) list * document list
| Data of string
type element_class = [
| `Block
| `Essential_block
| `Everywhere
| `Inline
| `None
]
type model_constraint = [
| `Any
| `Block
| `Elements of string list
| `Empty
| `Except of model_constraint * model_constraint
| `Flow
| `Inline
| `Or of model_constraint * model_constraint
| `Special
| `Sub_exclusions of string list * model_constraint
]
type simplified_dtd = (string * (element_class * model_constraint)) list
val html40_dtd : simplified_dtd
val relaxed_html40_dtd : simplified_dtd
val parse_document : ?dtd:simplified_dtd -> ?return_declarations:bool -> ?return_pis:bool -> ?return_comments:bool -> ?case_sensitive:bool -> Lexing.lexbuf -> document list
val parse : ?dtd:simplified_dtd -> ?return_declarations:bool -> ?return_pis:bool -> ?return_comments:bool -> ?case_sensitive:bool -> Netchannels.in_obj_channel -> document list
val decode : ?enc:Netconversion.encoding -> ?subst:( int -> string ) -> ?entity_base:[ `Empty | `Html | `Xml ] -> ?lookup:( string -> string ) -> ?dtd:simplified_dtd -> document list -> document list
val encode : ?enc:Netconversion.encoding -> ?prefer_name:bool -> ?dtd:simplified_dtd -> document list -> document list
val map_list : ( string -> string ) -> document list -> document list
type xmap_value =
| Xmap_attribute of string * string * string
| Xmap_data of string option * string
val xmap_list : ( xmap_value -> string ) -> string option -> document list -> document list
val write : ?dtd:simplified_dtd -> ?xhtml:bool -> Netchannels.out_obj_channel -> document list -> unit