class XMLScan::XPath::DOM::ElementNodeAdapter

Public Instance Methods

attributes() click to toggle source
# File lib/xml/dom2/xpath.rb, line 162
def attributes
  map = @node.attributes
  attrs = @visitor.get_attributes(@node)
  unless attrs then
    attrs = []
    map.length.times { |i| attrs.push map.item(i) }
    @visitor.regist_attributes @node, attrs
  end
  attrs
end
name_localpart() click to toggle source
# File lib/xml/dom2/xpath.rb, line 150
def name_localpart
  @node.nodeName
end
namespace_uri() click to toggle source
# File lib/xml/dom2/xpath.rb, line 154
def namespace_uri
  @node.namespaceURI
end
node_type() click to toggle source
# File lib/xml/dom2/xpath.rb, line 146
def node_type
  :element
end
qualified_name() click to toggle source
# File lib/xml/dom2/xpath.rb, line 158
def qualified_name
  @node.nodeName
end
wrap(node, visitor) click to toggle source
# File lib/xml/dom2/xpath.rb, line 140
def wrap(node, visitor)
  @node = node
  @visitor = visitor
  self
end