Nokogiri::XML::Node

class Nokogiri::XML::Node

Parent:
Object
Included modules:
Nokogiri::XML::PP::Node, Nokogiri::XML::Searchable

Nokogiri::XML::Node is your window to the fun filled world of dealing with XML and HTML tags. A Nokogiri::XML::Node may be treated similarly to a hash with regard to attributes- For example (from irb):

irb(main):004:0> node
=> <a href=.html?lang=en"#foo" id="link">link</a>
irb(main):005:0> node['href']
=> "#foo"
irb(main):006:0> node.keys
=> ["href", "id"]
irb(main):007