Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
Checks if the node that is passed is contained in the current collection.
Script Syntax
Copy Code | |
---|---|
objXMLDOMNode = objXMLDOMSelection.matches( objXMLDOMNode); |
Remarks
C/C++ Syntax
Copy Code | |
---|---|
HRESULT matches( IXMLDOMNode* pNode, IXMLDOMNode** ppNode ); |
Remarks
C/C++ Parameters
- pNode
-
[in] The node that is passed in.
- ppNode
-
[out, retval] Boolean result.
C/C++ Return Values
- S_OK
-
Value returned if method successful.
- E_INVALIDARG
-
Value returned if pNode=NULL.
An error for cases that are not allowed, as outlined in the Extensible Stylesheet Language (XSL) specification (applied to ID, IDREF, and Ancestor).
Requirements
Header | msxml2.h, msxml2.idl |
Library | uuid.lib |
Windows Embedded CE | Windows CE .NET 4.0 and later |
General Remarks
When matchesis called with node A, it returns node B such that if B was set as the context on a query, A is in the result set of the query. If no such B node is found, matchesreturns Null.
The matchesmethod does not take into account the current context of the query.
This method applies to the following objects and interfaces: