XPath Class Reference

XPath object. More...

#import <xpath.h>

Inheritance diagram for XPath:

XmlObject List of all members.

Public Member Functions

(id) - init
 Initialize the XPath data for XML document.
(BOOL) - compile:
 Compile XPath expression.
(BOOL) - evaluate:
 Evaluate document by compiled expression.
(XmlNodeSet *) - getResultNodeSet
 Get result of evaluation.

Protected Attributes

xmlXPathCompExprPtr xpath_exp
xmlXPathObjectPtr xpath_eval_result

Detailed Description

XPath object.

Description
XPath object.


Member Function Documentation

- (BOOL) compile: (const xmlChar *)  exp  
 

Compile XPath expression.

Return values:
true Compilation successed.
false Compilation failed.
Parameters:
exp XPath expression.
Description
Compile XPath expression.

- (BOOL) evaluate: (XmlDoc *)  doc  
 

Evaluate document by compiled expression.

Return values:
true Some nodes were matched.
false No nodes were matched.
Description
Evaluate document by compiled expression.
Warning:
You have to call compile() method before calling this method.

- (XmlNodeSet *) getResultNodeSet  
 

Get result of evaluation.

Returns:
Matched node set.
Description
Get result of evaluation.

- (id) init  
 

Initialize the XPath data for XML document.

Description
Initialize the XPath data for XML document.

Reimplemented from XmlObject.


Member Data Documentation

- (xmlXPathObjectPtr) xpath_eval_result [protected]
 

Result of evaluation

- (xmlXPathCompExprPtr) xpath_exp [protected]
 

Xpath expression


The documentation for this class was generated from the following files:
Generated on Fri Feb 3 01:21:24 2006 for LibXmlKit by  doxygen 1.4.5