| Module REXML::Node |
|
Represents a node in the tree. Nodes are never encountered except as superclasses of other objects. Nodes have siblings.
| Methods |
| Public Class methods |
| read_with_substitution( input, illegal=nil ) |
Reads text, substituting entities
| Public Instance methods |
| next_sibling_node() |
@return the next sibling (nil if unset)
| previous_sibling_node() |
@return the previous sibling (nil if unset)
| to_s(indent=-1) |
| indent(to, ind) |
| write_with_substitution(out, input) |
Writes out text, substituting special characters beforehand. @param out A String, IO, or any other object supporting <<( String ) @param input the text to substitute and the write out
z=utf8.unpack("U*") ascOut="" z.each{|r|
if r < 0x100
ascOut.concat(r.chr)
else
ascOut.concat(sprintf("&#x%x;", r))
end
} puts ascOut