Class: Nokogiri::XML::XPath
- Inherits:
-
Object
- Object
- Nokogiri::XML::XPath
- Defined in:
- lib/nokogiri/xml/xpath.rb,
ext/nokogiri/xml_xpath.c
Instance Method Summary collapse
-
#node_set ⇒ Object
Fetch the node set associated with this xpath context.
Instance Method Details
#node_set ⇒ Object
Fetch the node set associated with this xpath context.
19 20 21 22 23 24 25 26 27 28 |
# File 'ext/nokogiri/xml_xpath.c', line 19
static VALUE node_set(VALUE self)
{
xmlXPathObjectPtr xpath;
Data_Get_Struct(self, xmlXPathObject, xpath);
if (xpath->nodesetval)
return Nokogiri_wrap_xml_node_set(xpath->nodesetval);
return Nokogiri_wrap_xml_node_set(xmlXPathNodeSetCreate(NULL));
}
|