Class: REXML::Document

Class REXML::Document |
In: | rexml/document.rb
Parent: | Element

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|.

Methods

add add_element clone doc_type encoding new parse parse_stream root stand_alone? version write xml_decl

Public Class methods

add%params%

add_element%params%

clone%params%

doc_type%params%

encoding%params%

new%params%

parse%params%

parse_stream%params%

root%params%

stand_alone?%params%

version%params%

write%params%

xml_decl%params%

Public Instance methods

add%params%

add_element%params%

clone%params%

doc_type%params%

encoding%params%

new%params%

parse%params%

parse_stream%params%

root%params%

stand_alone?%params%

version%params%

write%params%

xml_decl%params%