Go to the source code of this file.
| #define XALAN_XPATH_API_ERROR_ALREADY_INITIALIZED 1 |
| #define XALAN_XPATH_API_ERROR_ALREADY_TERMINATED 2 |
| #define XALAN_XPATH_API_ERROR_BAD_XML 9 |
| #define XALAN_XPATH_API_ERROR_CANNOT_REINITIALIZE 6 |
| #define XALAN_XPATH_API_ERROR_INITIALIZATION_FAILED 3 |
| #define XALAN_XPATH_API_ERROR_INVALID_EXPRESSION 8 |
| #define XALAN_XPATH_API_ERROR_INVALID_PARAMETER 7 |
| #define XALAN_XPATH_API_ERROR_INVALID_XPATH 12 |
| #define XALAN_XPATH_API_ERROR_NOT_INITIALIZED 5 |
| #define XALAN_XPATH_API_ERROR_TERMINATION_FAILED 4 |
| #define XALAN_XPATH_API_ERROR_TRANSCODING 11 |
| #define XALAN_XPATH_API_ERROR_UNKNOWN 13 |
| #define XALAN_XPATH_API_ERROR_UNSUPPORTED_ENCODING 10 |
| #define XALAN_XPATH_API_SUCCESS 0 |
This is a simple C interface for the class XPathEvaluator.
It's the user's responsibility to call XalanXPathAPIInitialize() before making any other API calls, and to call XalanXPathAPITerminate() when finished with the API.
| #define XALAN_XPATHCAPI_EXPORT |
| #define XALAN_XPATHCAPI_EXPORT_FUNCTION | ( | T | ) | T |
| #define XALAN_XPATHCAPI_HEADER_GUARD_1357924680 |
| typedef void* XalanXPathEvaluatorHandle |
Handle used to store the address of XalanTransformer instance.
| typedef void* XalanXPathHandle |
Handle used to store the address of compiled XPath instance.
| int XalanCreateXPath | ( | XalanXPathEvaluatorHandle | theXalanHandle, | |
| const char * | theXPathExpression, | |||
| const char * | theXPathExpressionEncoding, | |||
| XalanXPathHandle * | theXPathHandle | |||
| ) |
Creates a compiled XPath instance.
| theXalanHandle | The handle of XalanXPathEvaluatorHandle instance. | |
| theXPathExpression | The expression to compile | |
| theXPathExpressionEncoding | The encoding of the expression. If NULL or an empty string, the local code page is assumed. | |
| theXPathHandle | A pointer to the handle for the new instance |
| int XalanCreateXPathEvaluator | ( | XalanXPathEvaluatorHandle * | theHandle | ) |
Create a XalanXPathEvaluator instance.
| theXalanHandle | A pointer to the handle for the new instance. |
| int XalanDestroyXPath | ( | XalanXPathEvaluatorHandle | theXalanHandle, | |
| XalanXPathHandle | theXPathHandle | |||
| ) |
| int XalanDestroyXPathEvaluator | ( | XalanXPathEvaluatorHandle | theXalanHandle | ) |
Destroy a XalanXPathEvaluator instance.
| theXalanHandle | The handle of the instance to destroy. |
| int XalanEvaluateXPathAsBoolean | ( | XalanXPathEvaluatorHandle | theXalanHandle, | |
| XalanXPathHandle | theXPathHandle, | |||
| const char * | theXML, | |||
| int * | theResult | |||
| ) |
Evaluates a compiled XPath instance.
| theXalanHandle | The handle of XalanXPathEvaluatorHandle instance. | |
| theXPathHandle | The pointer to handle for instance | |
| theXML | The XML document to use for evaluating the XPath expression | |
| theResult | A pointer to an int to receive the result. |
| int XalanEvaluateXPathExpressionAsBoolean | ( | XalanXPathEvaluatorHandle | theXalanHandle, | |
| const char * | theXPathExpression, | |||
| const char * | theXPathExpressionEncoding, | |||
| const char * | theXML, | |||
| int * | theResult | |||
| ) |
Evaluates an XPath expression.
| theXalanHandle | The handle of XalanXPathEvaluatorHandle instance. | |
| theXPathExpression | The expression to evaluate | |
| theXPathExpressionEncoding | The encoding of the expression. If NULL or an empty string, the local code page is assumed. | |
| theXML | The XML document to use for evaluating the XPath expression | |
| theResult | A pointer to an int to receive the result. |
| int XalanXPathAPIInitialize | ( | ) |
Initialize Xerces and the XPath API.
Should be called only once per process before making any other API calls.
| int XalanXPathAPITerminate | ( | ) |
Terminate Xerces and the XPath API.
Should be called only once per process after deleting all instances of XalanXPathEvaluator. Once a process has called this function, it cannot use the API for the remaining lifetime of the process.
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
|
Xalan-C++ XSLT Processor Version 1.10 |
|
|