MSimpleElement Class Reference

class MSimpleElement

MSimpleDocument

SIMPLE data document

simplexmlutils
Since
S60 3.2

Member Functions Documentation

AddAttrL(const TDesC8 &, const TDesC &)

void AddAttrL ( const TDesC8 & aName,
const TDesC & aValue
) [pure virtual]

Adds an attribute. If attribute is already existing, the value of the attribute will be replaced.

Since
S60 3.2

Parameters

const TDesC8 & aName Name of the attribute to be added.
const TDesC & aValue Value of the attribute to be added.

AddSimpleElementL(const TDesC8 &, const TDesC8 &)

MSimpleElement * AddSimpleElementL ( const TDesC8 & aNsUri,
const TDesC8 & aLocalName
) [pure virtual]

Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.

Since
S60 3.2

Parameters

const TDesC8 & aNsUri
const TDesC8 & aLocalName

AddSimpleElementL(const TDesC8 &)

MSimpleElement * AddSimpleElementL ( const TDesC8 & aLocalName ) [pure virtual]

Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element. Note: Element is created with no specific namespace, default namespace of some of the upper level elements are in effect if there is such a namespace.

Since
S60 3.2

Parameters

const TDesC8 & aLocalName

AttrValue(const TDesC8 &)

const TDesC8 * AttrValue ( const TDesC8 & aName ) [pure virtual]

Gets the value of the given attribute.

Parameters

const TDesC8 & aName

AttrValueLC(const TDesC8 &)

HBufC * AttrValueLC ( const TDesC8 & aName ) [pure virtual]

Gets the value of the given attribute.

Since
S60 3.2

Parameters

const TDesC8 & aName

Close()

void Close ( ) [pure virtual]
Destroy this element entity and all its descendant elements.
Since
S60 3.2

ContentUnicodeL()

HBufC * ContentUnicodeL ( ) [pure virtual]

Getter for the content of the element, unicode version.

Since
S60 3.2

DefNamespaceL()

MSimpleNamespace * DefNamespaceL ( ) [pure virtual]

Getter for Element's own default namespace.

Since
S60 3.2

DetachSimpleL()

void DetachSimpleL ( ) [pure virtual]

Detach the element from its parent. Notice that the current element instance should not be used after this method is called successfully. Leaves with KErrNotFound if parent was not set and nothing to detach.

Since
S60 3.2

HasContent()

TBool HasContent ( ) [pure virtual]

Method for checking if the element has any content within.

Since
S60 3.2

LocalName()

const TDesC8 & LocalName ( ) [pure virtual]
Getter for Element's local name. LocalName and Namespace are given in factory method.
Since
S60 3.2

RemoveSimpleElement(const TDesC8 &, const TDesC8 &)

void RemoveSimpleElement ( const TDesC8 & aNsUri,
const TDesC8 & aLocalName
) [pure virtual]

Remove an element from the childs.

Since
S60 3.2

Parameters

const TDesC8 & aNsUri
const TDesC8 & aLocalName

SetContentUnicodeL(const TDesC &)

void SetContentUnicodeL ( const TDesC & aContent ) [pure virtual]

Sets the content to the element. Old content is overwritten.

Since
S60 3.2

Parameters

const TDesC & aContent

SimpleAttributesL(RPointerArray< MSimpleAttribute > &)

TInt SimpleAttributesL ( RPointerArray < MSimpleAttribute > & aArray ) [pure virtual]

From MSimpleElement Gets all the attributes of this element in an array.

Since
S60 3.2

Parameters

RPointerArray < MSimpleAttribute > & aArray

SimpleElementsL(RPointerArray< MSimpleElement > &)

TInt SimpleElementsL ( RPointerArray < MSimpleElement > & aElementArray ) [pure virtual]

Getting the child elements of this element.

Parameters

RPointerArray < MSimpleElement > & aElementArray

SimpleParentL()

MSimpleElement * SimpleParentL ( ) [pure virtual]

Gets the parent element of this element.

Since
S60 3.2