Oracle9i XML API Reference - XDK and Oracle XML DB Release 2 (9.2) Part Number A96616-01 |
|
This chapter contains the following sections:
This class contains top-level methods for invoking the XSL processor.
Processes an XSL stylesheet with an XML document source. Returns a numeric error code, or 0 on success.
uword xslprocess( XMLParser *docctx, XMLParser *xslctx, XMLParser *resctx, Node **result);
This class contains top-level methods of class XPObject. Objects of this class are created as a result of XPath expression evaluation.
XPObject constructor.
XPObject();
Returns boolean value of the object.
boolean getbooleanva();
Returns numeric value of the object.
double getnumval();
Returns string value of the object.
oratext* getstrval();
Returns node set value of the object.
xpnset* getnsetval();
Returns the object type. The returned type could be one of the following:
xpobjtyp getxpobjtyp();
This class contains top-level methods for invoking the XPath processor.
Method | Description |
---|---|
XPath constructor. |
|
XPath destructor. |
|
Parses an XPath expression. |
|
Evaluates a previously parsed XPath expression. |
Creates and returns an XPath object. This call never fails.
XPath( xmlctx *ctx, xmlnode *xslnode, xmlnode* xml_node, oratext* baseURI, size_t nctxels, xmlnode** ctxnodes);
Deletes/destroys an XPath object.
delete();
Parses an XPath expression. Returns the expression tree on success, otherwise NULL
.
xpexpr *parsexpathexpr( oratext *expr, sword *err);
Argument | IN / OUT | Description |
---|---|---|
expr |
(IN) |
The expression in the form of a string |
err |
(OUT) |
The error code |
Evaluates an XPath expression. Returns the result object on success, or NULL
on failure. The type of the result object, obtained by calling getxpobjtyp()
, is one of:
XPObject *evalxpathexpr( xpexpr *exprtree, sword *err);
Argument | IN / OUT | Description |
---|---|---|
expr |
(IN) |
The expression in the form of a tree |
err |
(OUT) |
The error code |
|
Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|