Struct libxml::xpath::Object [−][src]
pub struct Object { pub ptr: xmlXPathObjectPtr, // some fields omitted }
Essentially, the result of the evaluation of some xpath expression
Fields
ptr: xmlXPathObjectPtr
libxml's ObjectPtr
Methods
impl Object
[src]
impl Object
pub fn get_number_of_nodes(&self) -> usize
[src]
pub fn get_number_of_nodes(&self) -> usize
get the number of nodes in the result set
pub fn get_nodes_as_vec(&self) -> Vec<Node>
[src]
pub fn get_nodes_as_vec(&self) -> Vec<Node>
returns the result set as a vector of node references
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
use if the XPath used was meant to return a string, such as string(//foo/@attr)