API published in: S60 3rd Ed
Link against: senxml.lib
Required Capabilities
None
#include <senelement.h>
Inherits MSenElement.
Inherited by CSenBaseElement.
Public Member Functions |
|
virtual const TDesC8 & | LocalName () const =0 |
Getter for local name. |
|
virtual const TDesC8 & | NamespaceURI () const =0 |
Getter for namespace URI. |
|
virtual void | SetNamespaceL (const TDesC8 &aNsUri)=0 |
Setter for Element's namespace URI. |
|
virtual void | SetNamespaceL (const TDesC8 &aNsPrefix, const TDesC8 &aNsUri)=0 |
Setter for Element's namespace URI. |
|
virtual const CSenNamespace * | AddNamespaceL (const TDesC8 &aPrefix, const TDesC8 &aUri)=0 |
Method for adding a namespace for the Element. |
|
virtual const CSenNamespace * | Namespace ()=0 |
Getter for Element's namespace. |
|
virtual const CSenNamespace * | Namespace (const TDesC8 &aNsPrefix)=0 |
virtual const CSenNamespace * | Namespace (const TDesC8 &aNsPrefix, const TDesC8 &aUri)=0 |
virtual const CSenNamespace * | Namespace (const TDesC8 &aNsPrefix, const TBool aCheckInParent)=0 |
virtual const TDesC8 & | NsPrefix () const =0 |
Getter for namespace prefix of this element. |
|
virtual void | SetPrefixL (const TDesC8 &aPrefix)=0 |
Setter for namespace prefix of this element. |
|
virtual TBool | HasContent () const =0 |
Method for checking if the element has any content within. |
|
virtual TPtrC8 | Content () const =0 |
Getter for the content of the element. |
|
virtual HBufC * | ContentUnicodeL () const =0 |
Getter for the content of the element, unicode version. |
|
virtual TPtrC8 | SetContentL (const TDesC8 &aContent)=0 |
Sets the content to the element. |
|
virtual RWriteStream & | ContentWriteStreamL ()=0 |
Gets the write stream for the content for easy appending. |
|
virtual TBool | ConsistsOfL (MSenElement &aCandidate)=0 |
Checks if element matches to another element by it's content and child elements. |
|
virtual TInt | ElementsL (RPointerArray< CSenElement > &aElementArray, const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Get a list of direct children element that have the given name and namespace. |
|
virtual TInt | ElementsL (RPointerArray< CSenElement > &aElementArray, const TDesC8 &aLocalName)=0 |
Get a list of direct children element that have the given name and same namespace as this parent Element. |
|
virtual RPointerArray< CSenElement > & | ElementsL ()=0 |
virtual const CSenNamespace * | AddNamespaceL (CSenNamespace &aNewNamespace, TBool aCheckInParent)=0 |
Adds a namespace declaration. |
|
virtual const TDesC8 * | AttrValue (const TDesC8 &aName)=0 |
Gets the value of the given attribute. |
|
virtual void | AddAttrL (const TDesC8 &aName, const TDesC8 &aValue)=0 |
Adds an attribute. |
|
virtual RPointerArray< CSenBaseAttribute > & | AttributesL ()=0 |
Gets all the attributes of this element in an array. |
|
virtual RPointerArray< CSenNamespace > & | NamespacesL ()=0 |
Gets all the namespaces of this element in an array. |
|
virtual CSenElement * | Parent ()=0 |
Gets the parent element of this element. |
|
virtual CSenElement * | SetParent (CSenElement *apParent)=0 |
Sets the parent element to this element. |
|
virtual CSenElement * | DetachL ()=0 |
Detach the element from its parent. |
|
virtual CSenElement * | Child (TInt aIndex)=0 |
Gets a child element from a specified index. |
|
virtual MSenElement & | Root ()=0 |
Gets the root element. |
|
virtual CSenElement * | Element (const TDesC8 &aLocalName)=0 |
Gets the child element with the specified local name. |
|
virtual CSenElement * | Element (const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Gets the child element with the specified local name and namespace URI. |
|
virtual CSenElement * | CreateElementL (const TDesC8 &aNsPrefix, const TDesC8 &aLocalName)=0 |
Create a new element ready for adding or insertion. |
|
virtual CSenElement & | InsertElementL (CSenElement &aInsertedElement, const CSenElement &aBeforeElement)=0 |
Insert an Element into the list of children elements so that the inserted Element is placed right before the aBeforeElement.
|
|
virtual CSenElement & | AddElementL (CSenElement &aElement)=0 |
Adds an Element to the children elements. |
|
virtual CSenElement & | AddElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Constructs and adds a new element to the children elements. |
|
virtual CSenElement & | AddElementL (const TDesC8 &aNsUri, const TDesC8 &aLocalName, const TDesC8 &aQName)=0 |
Constructs and adds a new element to the children elements. |
|
virtual CSenElement & | AddElementL (const TDesC8 &aLocalName)=0 |
Constructs and adds a new element to the children elements. |
|
virtual CSenElement * | RemoveElement (CSenElement &aElement)=0 |
Remove an element from the childs. |
|
virtual CSenElement * | RemoveElement (const TDesC8 &aNsUri, const TDesC8 &aLocalName)=0 |
Remove an element from the childs. |
|
virtual CSenElement * | RemoveElement (const TDesC8 &aLocalName)=0 |
Remove an element from the childs. |
|
virtual CSenElement * | ReplaceElementL (CSenElement &aElement)=0 |
Replaces an element from the childs with another element. |
|
virtual HBufC8 * | AsXmlL ()=0 |
Gets the element as an XML buffer. |
|
virtual HBufC * | AsXmlUnicodeL ()=0 |
Gets the element as an unicode XML buffer. |
|
virtual void | WriteAsXMLToL (RWriteStream &aWriteStream)=0 |
Element writes itself to a write stream using UTF-8 charset encoding. |
|
virtual void | WriteNamespacesToL (RWriteStream &aWriteStream)=0 |
Element writes its namespaces to a write stream using UTF-8 charset encoding. |
|
virtual MSenElement * | AsElement ()=0 |
Gets the current element as XML element. |
|
virtual void | CopyFromL (CSenElement &aSource)=0 |
Copies content from given element to this element appending to the existing content if there is any. |
|
virtual void | Set (const TDesC8 &aNamespaceURI, const TDesC8 &aLocalName, const TDesC8 &aQName)=0 |
(Re-) Set the name and namespace of this Element. |
|
virtual void | AddAttributesL (const RAttributeArray &apAttrs)=0 |
Adds new attributes to the element. |
|
Adds new attributes to the element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Adds an attribute. If attribute is already existing, the value of the attribute will be replaced.
Implements MSenElement. Implemented in CSenBaseElement. |
|
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.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Adds an Element to the children elements. Sets this element to be the new parent of the given element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Adds a namespace declaration. If this element (or its parent if parameter aCheckInParent is ETrue) already has a Namespace with the same prefix and URI the given Namespace is not added.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Method for adding a namespace for the Element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the current element as XML element. Mostly used to get the classes which implement this interface as an instance of this interface.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the element as an XML buffer. Buffer will contain all the childs etc.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the element as an unicode XML buffer. Buffer will contain all the childs etc.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets all the attributes of this element in an array.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the value of the given attribute.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets a child element from a specified index.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Checks if element matches to another element by it's content and child elements. Element can contain more data than the given pattern.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Getter for the content of the element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Getter for the content of the element, unicode version.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the write stream for the content for easy appending. Writing 8-bit (UTF-8) string to the returned stream will be appended to the content.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Copies content from given element to this element appending to the existing content if there is any.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Create a new element ready for adding or insertion. If the given namespace prefix is not declared yet the element will not be created and NULL will be returned.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Detach the element from its parent. If the element, or one of its children, is dependent on a namespace declared in the scope of the parent copy those namespace declarations to this element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the child element with the specified local name and namespace URI.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the child element with the specified local name. Assumes that namespace is the same as this parent element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Implements MSenElement. Implemented in CSenBaseElement. |
|
Get a list of direct children element that have the given name and same namespace as this parent Element.
Implemented in CSenBaseElement. |
|
Get a list of direct children element that have the given name and namespace.
Implemented in CSenBaseElement. |
|
Method for checking if the element has any content within.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Insert an Element into the list of children elements so that the inserted Element is placed right before the aBeforeElement. If aBeforeElement is not found, element will be appended to the last position. Function leaves if error occurs in inserting.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Getter for local name.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Implements MSenElement. Implemented in CSenBaseElement. |
|
Implements MSenElement. Implemented in CSenBaseElement. |
|
Implements MSenElement. Implemented in CSenBaseElement. |
|
Getter for Element's namespace.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets all the namespaces of this element in an array.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Getter for namespace URI.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Getter for namespace prefix of this element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the parent element of this element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Remove an element from the childs.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Remove an element from the childs.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Remove an element from the childs.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Replaces an element from the childs with another element. Element's local name and namespace URI will be used to match the element to be replaced. If matching element is not found, will normally add the given element to the childs.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Gets the root element. If no parent element, returns this element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
(Re-) Set the name and namespace of this Element. The element will be given the localName in the the given namespace. A prefix will be computed from the qualified name. This method should be used with care and is mainly intended for protected use in implementations.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Sets the content to the element. Old content is overwritten.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Setter for Element's namespace URI.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Setter for Element's namespace URI.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Sets the parent element to this element. Notice that the element is not automatically added as a child of the parent. Parent's AddElementL() should be called instead.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Setter for namespace prefix of this element.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Element writes itself to a write stream using UTF-8 charset encoding.
Implements MSenElement. Implemented in CSenBaseElement. |
|
Element writes its namespaces to a write stream using UTF-8 charset encoding.
Implements MSenElement. Implemented in CSenBaseElement. |