Type:
Class
Constants:
DECLARATION
:
XMLDecl.default
A convenient default XML declaration. If you
want an XML declaration, the easiest way to add
one is mydoc << Document::DECLARATION DEPRECATED
Use:
mydoc << REXML::XMLDecl.default
Represents a full XML document, including PIs, a doctype, etc. A Document has a single child that can be accessed by root(). Note that if you want to have an XML declaration written for a document you create, you must add one; REXML documents do not write a default declaration for you. See |DECLARATION| and |write|.