Go to the source code of this file.
|
| XalanXPathAPIInitialize () |
| Initialize Xerces and the XPath API. More...
|
|
| XalanXPathAPITerminate () |
| Terminate Xerces and the XPath API. More...
|
|
| XalanCreateXPathEvaluator (XalanXPathEvaluatorHandle *theHandle) |
| Create a XalanXPathEvaluator instance. More...
|
|
| XalanDestroyXPathEvaluator (XalanXPathEvaluatorHandle theXalanHandle) |
| Destroy a XalanXPathEvaluator instance. More...
|
|
| XalanCreateXPath (XalanXPathEvaluatorHandle theXalanHandle, const char *theXPathExpression, const char *theXPathExpressionEncoding, XalanXPathHandle *theXPathHandle) |
| Creates a compiled XPath instance. More...
|
|
| XalanDestroyXPath (XalanXPathEvaluatorHandle theXalanHandle, XalanXPathHandle theXPathHandle) |
| Destroys a compiled XPath instance. More...
|
|
| XalanEvaluateXPathAsBoolean (XalanXPathEvaluatorHandle theXalanHandle, XalanXPathHandle theXPathHandle, const char *theXML, int *theResult) |
| Evaluates a compiled XPath instance. More...
|
|
| XalanEvaluateXPathExpressionAsBoolean (XalanXPathEvaluatorHandle theXalanHandle, const char *theXPathExpression, const char *theXPathExpressionEncoding, const char *theXML, int *theResult) |
| Evaluates an XPath expression. More...
|
|
◆ XALAN_XPATH_API_ERROR_ALREADY_INITIALIZED
#define XALAN_XPATH_API_ERROR_ALREADY_INITIALIZED 1 |
◆ XALAN_XPATH_API_ERROR_ALREADY_TERMINATED
#define XALAN_XPATH_API_ERROR_ALREADY_TERMINATED 2 |
◆ XALAN_XPATH_API_ERROR_BAD_XML
#define XALAN_XPATH_API_ERROR_BAD_XML 9 |
◆ XALAN_XPATH_API_ERROR_CANNOT_REINITIALIZE
#define XALAN_XPATH_API_ERROR_CANNOT_REINITIALIZE 6 |
◆ XALAN_XPATH_API_ERROR_INITIALIZATION_FAILED
#define XALAN_XPATH_API_ERROR_INITIALIZATION_FAILED 3 |
◆ XALAN_XPATH_API_ERROR_INVALID_EXPRESSION
#define XALAN_XPATH_API_ERROR_INVALID_EXPRESSION 8 |
◆ XALAN_XPATH_API_ERROR_INVALID_PARAMETER
#define XALAN_XPATH_API_ERROR_INVALID_PARAMETER 7 |
◆ XALAN_XPATH_API_ERROR_INVALID_XPATH
#define XALAN_XPATH_API_ERROR_INVALID_XPATH 12 |
◆ XALAN_XPATH_API_ERROR_NOT_INITIALIZED
#define XALAN_XPATH_API_ERROR_NOT_INITIALIZED 5 |
◆ XALAN_XPATH_API_ERROR_TERMINATION_FAILED
#define XALAN_XPATH_API_ERROR_TERMINATION_FAILED 4 |
◆ XALAN_XPATH_API_ERROR_TRANSCODING
#define XALAN_XPATH_API_ERROR_TRANSCODING 11 |
◆ XALAN_XPATH_API_ERROR_UNKNOWN
#define XALAN_XPATH_API_ERROR_UNKNOWN 13 |
◆ XALAN_XPATH_API_ERROR_UNSUPPORTED_ENCODING
#define XALAN_XPATH_API_ERROR_UNSUPPORTED_ENCODING 10 |
◆ XALAN_XPATH_API_SUCCESS
#define XALAN_XPATH_API_SUCCESS 0 |
◆ XALAN_XPATHCAPI_EXPORT
#define XALAN_XPATHCAPI_EXPORT |
◆ XALAN_XPATHCAPI_EXPORT_FUNCTION
#define XALAN_XPATHCAPI_EXPORT_FUNCTION |
( |
|
T | ) |
T |
◆ XalanXPathEvaluatorHandle
Handle used to store the address of XalanTransformer instance.
Definition at line 76 of file XPathCAPI.h.
◆ XalanXPathHandle
Handle used to store the address of compiled XPath instance.
Definition at line 81 of file XPathCAPI.h.
◆ XalanCreateXPath()
Creates a compiled XPath instance.
- Parameters
-
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 |
- Returns
- 0 for success, or a non-zero error code upon failure
◆ XalanCreateXPathEvaluator()
Create a XalanXPathEvaluator instance.
- Parameters
-
theXalanHandle | A pointer to the handle for the new instance.
|
- Returns
- 0 for success, or a non-zero error code upon failure
◆ XalanDestroyXPath()
Destroys a compiled XPath instance.
- Parameters
-
theXalanHandle | The handle of XalanXPathEvaluatorHandle instance.
|
theXPathHandle | The handle of XPath instance |
- Returns
- 0 for success, or a non-zero error code upon failure
◆ XalanDestroyXPathEvaluator()
Destroy a XalanXPathEvaluator instance.
- Parameters
-
theXalanHandle | The handle of the instance to destroy. |
- Returns
- 0 for success, or a non-zero error code upon failure
◆ XalanEvaluateXPathAsBoolean()
Evaluates a compiled XPath instance.
- Parameters
-
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. |
- Returns
- 0 for success, or a non-zero error code upon failure
◆ XalanEvaluateXPathExpressionAsBoolean()
XalanEvaluateXPathExpressionAsBoolean |
( |
XalanXPathEvaluatorHandle |
theXalanHandle, |
|
|
const char * |
theXPathExpression, |
|
|
const char * |
theXPathExpressionEncoding, |
|
|
const char * |
theXML, |
|
|
int * |
theResult |
|
) |
| |
Evaluates an XPath expression.
- Parameters
-
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. |
- Returns
- 0 for success, or a non-zero error code upon failure
◆ XalanXPathAPIInitialize()
XalanXPathAPIInitialize |
( |
| ) |
|
Initialize Xerces and the XPath API.
Should be called only once per process before making any other API calls.
- Returns
- 0 for success, or a non-zero error code upon failure
◆ XalanXPathAPITerminate()
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.
- Returns
- 0 for success, or a non-zero error code upon failure