| Class | Nokogiri::XML::NodeSet |
| In: |
lib/nokogiri/ffi/xml/node_set.rb
lib/nokogiri/xml/node_set.rb |
| 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
Equality — Two NodeSets are equal if the contain the same number of elements and if each element is equal to the corresponding element in the other NodeSet
If path is a string, search this document for path returning the first Node. Otherwise, index in to the array with path.
Search this document for paths
For more information see Nokogiri::XML::Node#css and Nokogiri::XML::Node#xpath
Search this NodeSet for XPath paths
For more information see Nokogiri::XML::Node#xpath