Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Cxml
SourceProvide types and pretty printing for XML.
Attribute representation.
Representation of nodes.
type document = {
version : string;
Version, usually 1.0
*)encoding : string;
Encoding (only current encoding supported now)
*)standalone : bool;
Standalone attribute
*)element : node;
Document root element
*)}
Representation of an XML document.
validate_identifiers elt
validates that identifiers in the document are unique and non-empty.
deduplicate elt
traverses elt
and removes all sub-elements with duplicating identifiers.
When several elements have the same identifier the first (in the DSF traversal order) element is preserved and all subsequent are removed.
If all children of a parent are duplicates of some other elements, then the father is still preserved with an empty list of children (unless it is itself a duplicate of some other element).
Escape the given attribute value for output.
Output an attribute.
Output a node on the given channel.
Output an XML document to the given output channel.