In: |
htree/display.rb
htree/modules.rb htree/rexml.rb |
HTree::Node#display_xml prints the node as XML.
The first optional argument, out, specifies output target. It should respond to <<. If it is not specifies, $stdout is used.
The second optional argument, encoding, specifies output MIME charset (character encoding). If it is not specified, HTree::Encoder.internal_charset is used.
HTree::Node#display_xml returns out.