Returns a copy of this attribute
Make a copy of this object
Examples
c = CData.new( "Some text" ) d = c.clone d.to_s # -> "Some text"
Retrieves a named notation. Only notations declared in the internal DTD
subset can be retrieved.
Method
contributed by Henrik Martensson
Should be obvious
@return the XMLDecl
encoding of this document as an Encoding
object. If no XMLDecl
has been set, returns the default encoding.
Creates a shallow copy of self.
d = Document.new "<a><b/><b/><c><d/></c></a>" new_a = d.root.clone puts new_a # => "<a/>"
Get an array of all Comment
children. IMMUTABLE