RXmlEngNodeSet Class Reference

#include <xml/dom/xmlengnodeset.h>

class RXmlEngNodeSet
Public Member Functions
RXmlEngNodeSet()
voidClose()
IMPORT_C TBoolContains(TXmlEngNode)
IMPORT_C voidFree()
IMPORT_C voidInitializeL()
IMPORT_C TIntLength()
IMPORT_C TXmlEngNodeoperator[](TInt)

Detailed Description

This class implements the node set container, which is one of the result type in XPath.

Constructor & Destructor Documentation

RXmlEngNodeSet ( )

IMPORT_CRXmlEngNodeSet()

Default constructor

Member Function Documentation

Close ( )

voidClose()[inline]

Closes the node set. This simply calls Free().

Contains ( TXmlEngNode )

IMPORT_C TBoolContains(TXmlEngNodeaNode)const

Checks whether a node is in the node set.

Parameters
aNodeThe node to check
Return Value
ETrue if the node is in the node set, EFalse otherwise

Free ( )

IMPORT_C voidFree()

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.

InitializeL ( )

IMPORT_C voidInitializeL()

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
KErrNoMemoryMemory allocation failure

Length ( )

IMPORT_C TIntLength()const

Gets the size of the node set

Return Value
The number of nodes

operator[] ( TInt )

IMPORT_C TXmlEngNodeoperator[](TIntaIndex)const

Retrieves a node from the node set by index

Parameters
aIndexNode index ( 0 <= aIndex < Length() )
Return Value
The node
Leave Codes
KXmlEngErrWrongUseOfAPIaIndex is less than 0 or greater than