CXmlElementImpl Class Reference

class CXmlElementImpl : public CBase

Class description

Inherits from

Constructor & Destructor Documentation

~CXmlElementImpl()

~CXmlElementImpl ( ) [virtual]

Need method description

Since
1.0
Since
1.0
Since
1.0

Member Functions Documentation

AppendChildL(MXmlElement *, TBool)

MXmlElement * AppendChildL ( MXmlElement * aAppendChild,
TBool aIsJSR226Element = EFalse
) [virtual]

Append child method for an XML element

Since
1.0

Parameters

MXmlElement * aAppendChild - The element object that needs to be appended
TBool aIsJSR226Element = EFalse

CloneL(MXmlElement *)

MXmlElement * CloneL ( MXmlElement * aParentElement )

A method that performs deep copy for this object

Since
1.0

Parameters

MXmlElement * aParentElement

CopyL(CXmlElementImpl *)

void CopyL ( CXmlElementImpl * aDestElement ) [protected]

Copy this object to an object that is already created and initialized

Since
1.0

Parameters

CXmlElementImpl * aDestElement - A CXmlElementImpl pointer to an object requiring the copy

ElemID()

TUint8 ElemID ( ) [virtual]

A method that return integer ID of the element

Since
1.0

FirstChild()

MXmlElement * FirstChild ( ) [virtual]

Accessor method for 'first child' of an XML element

Since
1.0

HasChildNodes()

TBool HasChildNodes ( ) [virtual]

'Has child nodes' method that finds out if the current element has any child nodes

Since
1.0

InitializeL(const TUint8)

void InitializeL ( const TUint8 aElemID ) [protected, virtual]

Initialize the state of XML element object

Since
1.0

Parameters

const TUint8 aElemID

LastChild()

MXmlElement * LastChild ( ) [virtual]

Accessor method for 'last child' of an XML element

Since
1.0

NextSibling()

MXmlElement * NextSibling ( ) [virtual]

Accessor method for 'next sibling' of an XML element

Since
1.0

OwnerDocument()

MXmlDocument * OwnerDocument ( ) [virtual]

Accessor method for 'owner document' of an XML element

Since
1.0

ParentNode()

MXmlElement * ParentNode ( ) [virtual]

Accessor method for 'parent node' of an XML element

Since
1.0

PreviousSibling()

MXmlElement * PreviousSibling ( ) [virtual]

RemoveAttribute(const TDesC &)

TInt RemoveAttribute ( const TDesC & aName ) [virtual]

Remove attribute for an XML element Actual specification requires the attribute node be removed Since this implementation does not create an attribute node, it just changes the state of the corresponding variable

Since
1.0

Parameters

const TDesC & aName - A string buffer containing the name of the attribute to be removed

RemoveChild(MXmlElement *)

void RemoveChild ( MXmlElement * aRemoveChild ) [virtual]

Remove child method for an XML element

Since
1.0

Parameters

MXmlElement * aRemoveChild - A pointer to the object that is to be removed

SetAttributeL(const TDesC &, const TDesC &)

TInt SetAttributeL ( const TDesC & aName,
const TDesC & aValue
) [virtual]

Set the attribute value for a given attribute name of the current XML element Actual specification requires a new node object be created for the new attribute This implementation just sets a variable in the element class instance

Since
1.0

Parameters

const TDesC & aName - A string buffer containig the name of the attribute to be set
const TDesC & aValue - A string buffer containig the value of the attribute to be set

SetFirstChild(MXmlElement *)

void SetFirstChild ( MXmlElement * ) [virtual]

Accessor to set first child of an XML element

Since
1.0

Parameters

MXmlElement *

SetLastChild(MXmlElement *)

void SetLastChild ( MXmlElement * ) [virtual]

Accessor to set last child of an XML element

Since
1.0

Parameters

MXmlElement *

SetNextSibling(MXmlElement *)

void SetNextSibling ( MXmlElement * ) [virtual]

Accessor to set next sibling of an XML element

Since
1.0

Parameters

MXmlElement *

SetOwnerDocument(MXmlDocument *)

void SetOwnerDocument ( MXmlDocument * ) [virtual]

Accessor to set owner document of an XML element

Since
1.0

Parameters

MXmlDocument *

SetParentNode(MXmlElement *)

void SetParentNode ( MXmlElement * ) [virtual]

Accessor to set parent node of an XML element

Since
1.0

Parameters

MXmlElement *

TagName()

const TDesC & TagName ( ) [virtual]

Accessor for the tag name of an XML element

Since
1.0

Member Data Documentation

TUint8 iElemID

TUint8 iElemID [protected]

MXmlElement * iFirstChild

MXmlElement * iFirstChild [protected]

MXmlElement * iLastChild

MXmlElement * iLastChild [protected]

MXmlElement * iNextSibling

MXmlElement * iNextSibling [protected]

MXmlDocument * iOwnerDocument

MXmlDocument * iOwnerDocument [protected]

MXmlElement * iParentNode

MXmlElement * iParentNode [protected]