package xtmpl
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=398055f25eeac6972b0094dbfb3a6d8d
sha512=d0ab7fe67f2534a5c91d9c7e55efbcbcb4fa9269cfa2016e5793efbfe76abe33d3dac28eb44cfb940f121d167b88b14a0d3ba042bbd53a5d4dd379c27fae2328
doc/xtmpl/Xtmpl/Xml/index.html
Module Xtmpl.Xml
Regular XML trees
Locations
A position in a source (file, string, ...).
val pos : ?file:string -> line:int -> bol:int -> char:int -> unit -> posval string_of_loc : loc -> stringtype 'a with_loc = 'a * loc optionErrors
type error = loc * stringexception Error of errorval error : loc -> string -> 'aval string_of_error : (loc * string) -> stringNames
name_of_string str cuts a name according to first ':' character. If no such character is found, return ("",str).
module Name_ord : Map.OrderedType with type t = nameXML trees
type 'a attributes = 'a Name_map.ttype str_attributes = string with_loc attributesConstructors
val node : ?loc:loc -> name -> ?atts:str_attributes -> tree list -> treeval prolog_comment : ?loc:loc -> string -> prolog_miscval prolog_pi : ?loc:loc -> name -> string -> prolog_miscval xml_decl : ?loc:loc -> str_attributes -> xml_declval prolog : ?decl:xml_decl -> ?doctype:doctype -> prolog_misc list -> prologInput/output
val default_parse_param : parse_paramDefault: no self-closing tags, unescape XML entities (amp, apos,quot, lt, gt). ignore_unclosed: false.
mapping from XML entities to utf-8 code points
mapping from HTML entities to utf-8 code points
val unescape : parse_param -> ?entities:bool -> string -> stringUnescape character references and entity references from parse_param.entities.
Replace the following characters: < by <, > by >, & by &. Also replace simple and double quotes by ' and " if quotes = true (which is false by default).
val from_string : ?param:parse_param -> ?pos_start:pos -> string -> tree listval from_channel :
?param:parse_param ->
?pos_start:pos ->
in_channel ->
tree listval from_file : ?param:parse_param -> string -> tree listval doc_from_string :
?param:parse_param ->
?pos_start:pos ->
string ->
tree docval doc_from_channel :
?param:parse_param ->
?pos_start:pos ->
in_channel ->
tree docval doc_from_file : ?param:parse_param -> string -> tree docval to_string : tree list -> stringAttributes
val atts_empty : 'a attributesval atts_of_list : ?atts:'a attributes -> (name * 'a) list -> 'a attributesSame as Rewrite.atts_of_list but for generic attributes.
val atts_one : ?atts:'a attributes -> name -> 'a -> 'a attributesSame as Rewrite.atts_one but for generic attributes.
val atts_remove : name -> 'a attributes -> 'a attributesSame as Rewrite.atts_remove but for generic attributes.
val atts_replace : name -> 'a -> 'a attributes -> 'a attributesSame as Rewrite.atts_replace but for generic attributes.
val get_att : 'a attributes -> name -> 'a optionSame as Rewrite.get_att but for generic attributes.
val opt_att : str_attributes -> ?def:string -> name -> string * loc optionSame as Rewrite.opt_att but for str_attributes.
val string_of_atts : str_attributes -> stringReturn a string representation of the given str_attributes.