XML building DSL for constructing XML documents programmatically.
Drop-in replacement for Saxy.XML.
Example
import RustyXML.XML
doc = element("person", [{"id", "1"}], [
element("name", [], ["John Doe"]),
element("email", [], ["john@example.com"])
])
RustyXML.encode!(doc)
#=> "<person id=\"1\"><name>John Doe</name><email>john@example.com</email></person>"
Summary
Functions
Create a CDATA section.
Create a text content node.
Create an XML element with children.
Create an empty (self-closing) XML element.
Create a processing instruction.