Class: ROXML::XML::Document

Inherits:
Object show all
Includes:
NamespacedSearch
Defined in:
lib/roxml/xml/parsers/rexml.rb,
lib/roxml/xml/parsers/libxml.rb

Instance Method Summary collapse

Methods included from NamespacedSearch

#search

Instance Method Details

#root=(node) ⇒ Object

Raises:

  • (ArgumentError)


67
68
69
70
# File 'lib/roxml/xml/parsers/rexml.rb', line 67

def root=(node)
  raise ArgumentError, "Root is already defined" if root
  add(node)
end