Class

REXML::Formatters::Transitive

Inheritance
< REXML::Formatters::Default < Object

The Transitive formatter writes an XML document that parses to an identical document as the source document. This means that no extra whitespace nodes are inserted, and whitespace within text nodes is preserved. Within these constraints, the document is pretty-printed, with whitespace inserted into the metadata to introduce formatting.

Note that this is only useful if the original XML is not already formatted. Since this formatter does not alter whitespace nodes, the results of formatting already formatted XML will be odd.

Methods

Class

Visibility Signature
public new ( indentation=2 )

Instance

Visibility Signature
protected write_element ( node, output )
protected write_text ( node, output )

Class Method Detail

new( indentation=2 )

Instance Method Detail

write_element( node, output )

write_text( node, output )