Class XML::DOM::Element
In: lib/xml/dom2/element.rb
lib/xml/dom2/xpath.rb
lib/xml/dom/digest.rb
lib/xml/dom/core.rb
Parent: Node

Methods

Public Class methods

new(tag, attrs, [child1, child2, …]) or new(tag, attrs, child1, child2, …)

    tag:    String
    attrs:  Hash, Attr or Array of Attr (or nil)
    child?: String or Node

new(tag, attrs, [child1, child2, …]) or new(tag, attrs, child1, child2, …)

    tag:    String
    attrs:  Hash, Attr or Array of Attr (or nil)
    child?: String or Node

Public Instance methods

get the list of nodeValues by IDs [experimental implement]

get the list of nodeValues by IDs [experimental implement]

DOM
(but this is not "live")
DOM
(but this is not "live")

[DOM2]

tagName()

Alias for nodeName

tagName()

Alias for nodeName

trim extra whitespaces if attribute ‘xml:space’ is ‘preserve’, don‘t trim any white spaces

trim extra whitespaces if attribute ‘xml:space’ is ‘preserve’, don‘t trim any white spaces

[Validate]