Class: REXML::Formatters::Transitive

Class | REXML::Formatters::Transitive
In: | temp/formatters/transitive.rb
Parent: | Default

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

new write_element write_text

### Public Class methods

new( indentation=2 )

### Protected Instance methods

write_element( node, output )
write_text( node, output )

[Validate]