Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface CATIXMLXPathFactory
Interface to instantiate XPath expressions.
Role: This interface is used to create XPath expressions.
These XPath expressions use as a context node the DOM node which implements
the interface. This context node can be either a CATIDOMDocument or a
CATIDOMElement node.
The following code sample shows how an CATIXMLXPathFactory can be obtained from a CATIDOMElement to create and evaluate an XPath expression.
CATIDOMElement_var x = ...; CATIXMLXPathFactory factory = x; if (factory != NULL_var) { CATIXMLXPathExpression_var xPath; hr = factory->CreateExpression("foo/bar", xPath); if (SUCCEEDED(hr) && (xPath != NULL_var)) { CATIDOMNodeList_var nodeList; hr = xPath->EvaluateAsNodeList(nodeList); } }
public virtual CreateExpression( | const | iExpression, |
oPath) |
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.