#include <xml/dom/xmlengnodeset.h>
class RXmlEngNodeSet |
Public Member Functions | |
---|---|
RXmlEngNodeSet() | |
void | Close() |
IMPORT_C TBool | Contains(TXmlEngNode) |
IMPORT_C void | Free() |
IMPORT_C void | InitializeL() |
IMPORT_C TInt | Length() |
IMPORT_C TXmlEngNode | operator[](TInt) |
This class implements the node set container, which is one of the result type in XPath.
IMPORT_C TBool | Contains | ( | TXmlEngNode | aNode | ) | const |
Checks whether a node is in the node set.
Parameters | |
---|---|
aNode | The node to check |
IMPORT_C void | Free | ( | ) |
Frees any allocated resources.
As a node set only refers to existing nodes in the DOM tree, no nodes are freed. However, namespace declarations are copied into the node set and these copies are indeed freed.
IMPORT_C void | InitializeL | ( | ) |
Initializes the node set to an empty state.
See also: Free()
This method is used when preparing node sets that will be used with RXmlEngXPathExpression::EvaluateWithDependenciesL(TXmlEngNode,RXmlEngNodeSet&) and TXmlEngXPathEvaluator::EvaluateWithDependenciesL(aExpression,aContextNode,aResolver,aDependents).
Leave Codes | |
---|---|
KErrNoMemory | Memory allocation failure |
IMPORT_C TXmlEngNode | operator[] | ( | TInt | aIndex | ) | const |
Retrieves a node from the node set by index
Parameters | |
---|---|
aIndex | Node index ( 0 <= aIndex < Length() ) |
Leave Codes | |
---|---|
KXmlEngErrWrongUseOfAPI | aIndex is less than 0 or greater than |