Class | Nokogiri::XML::NodeSet |
In: |
lib/nokogiri/ffi/xml/node_set.rb
lib/nokogiri/xml/node_set.rb ext/nokogiri/html_document.c |
Parent: | Object |
A NodeSet contains a list of Nokogiri::XML::Node objects. Typically a NodeSet is return as a result of searching a Document via Nokogiri::XML::Node#css or Nokogiri::XML::Node#xpath
[] | -> | slice |
push | -> | << |
unlink | -> | remove |
length | -> | size |
to_a | -> | to_ary |
Create a NodeSet with document defaulting to list
Element reference - returns the node at index, or returns a NodeSet containing nodes starting at start and continuing for length elements, or returns a NodeSet containing nodes specified by range. Negative indices count backward from the end of the node_set (-1 is the last node). Returns nil if the index (or start) are out of range.
Delete node from the Nodeset, if it is a member. Returns the deleted node if found, otherwise returns nil.
Search this document for paths
For more information see Nokogiri::XML::Node#css and Nokogiri::XML::Node#xpath
Element reference - returns the node at index, or returns a NodeSet containing nodes starting at start and continuing for length elements, or returns a NodeSet containing nodes specified by range. Negative indices count backward from the end of the node_set (-1 is the last node). Returns nil if the index (or start) are out of range.