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.

ParameterDescription
aNodeThe node to check

Returns: 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
KErrNoMemory Memory allocation failure
leave
  • Otherwise, any of the system wide errors.

Length ( )

IMPORT_C TIntLength()const

Gets the size of the node set

Returns: The number of nodes

operator[] ( TInt )

IMPORT_C TXmlEngNodeoperator[](TIntaIndex)const

Retrieves a node from the node set by index

leave
KXmlEngErrWrongUseOfAPI aIndex is less than 0 or greater than Length(), in debug builds only.
leave
  • Otherwise, any of the system wide errors.

ParameterDescription
aIndexNode index ( 0 <= aIndex < Length() )

Returns: The node