Method: LibXML::XML::XPath::Object#xpath_type
- Defined in:
- ext/libxml/ruby_xml_xpath_object.c
#xpath_type ⇒ Integer
Returns the XPath type of the result object. Possible values are defined as constants on the XML::XPath class and include:
-
XML::XPath::UNDEFINED
-
XML::XPath::NODESET
-
XML::XPath::BOOLEAN
-
XML::XPath::NUMBER
-
XML::XPath::STRING
-
XML::XPath::POINT
-
XML::XPath::RANGE
-
XML::XPath::LOCATIONSET
-
XML::XPath::USERS
-
XML::XPath::XSLT_TREE
273 274 275 276 277 278 |
# File 'ext/libxml/ruby_xml_xpath_object.c', line 273
static VALUE rxml_xpath_object_get_type(VALUE self)
{
rxml_xpath_object *rxpop;
Data_Get_Struct(self, rxml_xpath_object, rxpop);
return INT2FIX(rxpop->xpop->type);
}
|