Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > rexmlライブラリ > REXML::Elementクラス
class REXML::Element
クラスの継承リスト: REXML::Element < REXML::Namespace < REXML::XMLTokens < REXML::Parent < Enumerable < REXML::Child < REXML::Node < Object < Kernel < BasicObject
Abstract
特異メソッド
new(arg = UNDEFINED, parent = nil, context = nil)
インスタンスメソッド
add_attribute(key, value = nil)add_attributes(hash)add_element(element, attrs = nil)add_namespace(prefix, uri = nil)add_text(text)attribute(name, namespace = nil)attributescdatasclonecommentscontextcontext=(value)delete_attribute(key)delete_element(element)delete_namespace(namespace = "xmlns")documenteach_element(xpath = nil) {|element| ... }each_element_with_attribute(key, value = nil, max = 0, name = nil) {|element| ... }each_element_with_text(text = nil, max = 0, name = nil) {|element| ... }elementsget_elements(xpath)get_text(path = nil)has_attributes?has_elements?has_text?ignore_whitespace_nodesinspectinstructionsnamespacenamespacesnext_elementnode_typeprefixesprevious_elementrawrootroot_nodetext(path = nil)text=(text)textswhitespacewrite(writer = $stdout, indent = -1, transitive = false, ie_hack = false)xpath
定数
UNDEFINED