|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |
class CXpathBase: public CInterface { public: CXpathBase(CToolkitBase *pToolkitBase); ~CXpathBase(); public: XXpathExpr CreateExpr(const WCHAR *pszSource); XXpathContext CreateContext(CXpathNodeSet *pNodeSet); XXpathContext CreateContext( Dom::INode *pNode, int nCount=1, int nPosition=1); }; typedef XInterface<CXpathBase> XXpathBase;
Encapsulates toolkit functionality related to XPath.
CToolkitBase, CXpathContext, CXpathExpr, Dom::INode
Constructor/Destructor Summary | |
CXpathBase
(CToolkitBase *pToolkitBase);
����������Constructs the toolkit XPath base. |
|
~CXpathBase
();
����������Destroys the toolkit XPath base. |
Function Summary | |
XXpathExpr
|
CreateExpr
(const WCHAR *pszSource);
����������Creates the XPath expression. |
XXpathContext
|
CreateContext
(CXpathNodeSet *pNodeSet);
����������Creates the XPath context from the XPath node set. |
XXpathContext
|
CreateContext
(Dom::INode *pNode, int nCount=1, int nPosition=1);
����������Creates the XPath context from the context node, context size, and context position. |
Constructor/Destructor Detail |
CXpathBase(CToolkitBase *pToolkitBase);
Constructs the toolkit XPath base.
pToolkitBase
- the master toolkit base~CXpathBase();
Destroys the toolkit XPath base.
Function Detail |
XXpathExpr CreateExpr(const WCHAR *pszSource);
Creates the XPath expression.
This method takes the string representation of the XPath
expression, parses it, and stores result in the newly
created
CXpathExpr
object.
It is an error is the expression contains references to functions not from the XPath core function library, or to variables.
pszSource
- the string representation of
the XPath expressionXXpathContext CreateContext(CXpathNodeSet *pNodeSet);
Creates the XPath context from the XPath node set.
See
CXpathContext
for details of node
set construction.
pNodeSet
- the XPath node setXXpathContext CreateContext( Dom::INode *pNode, int nCount=1, int nPosition=1);
Creates the XPath context from the context node, context size, and context position.
The model of the context node must be XDM (that is, DOM nodes are not allowed).
See
CXpathContext
for details of node
set construction.
pNode
- the context nodenCount
- the context sizenPosition
- the context position
|
Unicorn XML Toolkit Version 1.50.00 |
|||||||||
� PREV CLASS �� NEXT CLASS | FRAMES��NO FRAMES | |||||||||
SUMMARY: � CONSTR �|� FUNCTION �|�DATA | DETAIL: � CONSTR �|� FUNCTION �|�DATA |