XML::Builder
An XML builder generates valid XML.
An XML::Error is raised if attempting to generate
an invalid XML (for example, if invoking end_element
without a matching start_element, or trying to use
a non-string value as an object's field name)
Constructors
Instance methods
Emits the start of an attribute, invokes the block, and then emits the end of the attribute.
Emits an attribute with namespace info and a value.
Emits the given attributes with their values.
Emits the start of a CDATA section, invokes the block
and then emits the end of the CDATA section.
NOTE: CDATA end sequences written within the block
need to be escaped manually.
Emits the start of a comment, invokes the block and then emits the end of the comment.
Emits the start of the document, invokes the block, and then emits the end of the document.
Emits the start of a DTD, invokes the block
and then emits the end of the DTD.
Emits a DTD.
Emits the start of an element with namespace info with the given attributes, invokes the block and then emits the end of the element.
Emits the start of an element with namespace info with the given attributes, invokes the block and then emits the end of the element.
Emits the start of an element with the given attributes, invokes the block and then emits the end of the element.
Emits the start of an element with the given attributes, invokes the block and then emits the end of the element.
Emits an element with namespace info with the given attributes.
Emits an element with namespace info with the given attributes.
Emits an element with the given attributes.
Emits the start of an attribute with namespace info.
Emits the start of an element with namespace info.