Sablon.XML (sablon v0.4.4)

Copy Markdown View Source

Convenience entry points for the mutable XML layer.

See Sablon.XML.Document for the storage model and Sablon.XML.Node for the node API.

Summary

Functions

The document node itself.

Parses an XML fragment, i.e. markup without a single root element.

Parses an XML document.

The root element of a document.

The text content of a document or node.

Serialises a document or node back to XML.

Functions

doc_node(doc)

The document node itself.

fragment(binary)

Parses an XML fragment, i.e. markup without a single root element.

parse(binary)

Parses an XML document.

root(doc)

The root element of a document.

text(doc)

The text content of a document or node.

to_xml(doc)

Serialises a document or node back to XML.