API published in: S60 3rd Ed
Link against: senxml.lib
Required Capabilities
None
#include <msenelement.h>
Inherited by CSenElement.
Public Member Functions |
|
virtual const TDesC8 & | LocalName () const =0 |
Getter for Element's local name. |
|
virtual const TDesC8 & | NamespaceURI () const =0 |
Getter for Element's 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 * | AddNamespaceL (CSenNamespace &aNewNamespace, TBool aCheckInParent)=0 |
Adds a namespace declaration. |
|
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 its content and child elements. |
|
virtual RPointerArray< CSenElement > & | ElementsL ()=0 |
Getting the child elements of this element. |
|
virtual CSenElement * | Child (TInt aIndex)=0 |
Gets a child element from a specified index. |
|
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 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 element as an UTF-8 form XML. |
|
virtual HBufC * | AsXmlUnicodeL ()=0 |
Gets the element as XML fragment in UTF-8 format. |
|
virtual void | WriteAsXMLToL (RWriteStream &aWriteStream)=0 |
Writes this element as XML, in UTF-8 form to a stream. |
|
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 &aAttrs)=0 |
Adds new attributes to the element. |
|
Adds new attributes to the element.
Implemented in CSenBaseElement, and CSenElement. |
|
Adds an attribute. If attribute is already existing, the value of the attribute will be replaced.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.
Implemented in CSenBaseElement, and CSenElement. |
|
Constructs and adds a new element to the children elements. Sets this element to be the new parent of the given element.
Implemented in CSenBaseElement, and CSenElement. |
|
Adds an Element to the children elements. Sets this element to be the new parent of the given element.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
Method for adding a namespace for the Element.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets the current element as XML element. Mostly used to get the classes which implement this interface as an instance of this interface.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets element as an UTF-8 form XML.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets the element as XML fragment in UTF-8 format.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets all the attributes of this element in an array.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets the value of the given attribute.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets a child element from a specified index.
Implemented in CSenBaseElement, and CSenElement. |
|
Checks if element matches to another element by its content and child elements. Element can contain more data than the given pattern.
Implemented in CSenBaseElement, and CSenElement. |
|
Getter for the content of the element.
Implemented in CSenBaseElement, and CSenElement. |
|
Getter for the content of the element, unicode version.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
Copies content from given element to this element appending to the existing content if there is any.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets the child element with the specified local name and namespace URI.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets the child element with the specified local name. Assumes that namespace is the same as this parent element.
Implemented in CSenBaseElement, and CSenElement. |
|
Getting the child elements of this element.
Implemented in CSenBaseElement, and CSenElement. |
|
Method for checking if the element has any content within.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
Getter for Element's local name.
Implemented in CSenBaseElement, and CSenElement. |
|
Implemented in CSenBaseElement, and CSenElement. |
|
Implemented in CSenBaseElement, and CSenElement. |
|
Implemented in CSenBaseElement, and CSenElement. |
|
Getter for Element's namespace.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets all the namespaces of this element in an array.
Implemented in CSenBaseElement, and CSenElement. |
|
Getter for Element's namespace URI.
Implemented in CSenBaseElement, and CSenElement. |
|
Getter for namespace prefix of this element.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets the parent element of this element.
Implemented in CSenBaseElement, and CSenElement. |
|
Remove an element from the childs.
Implemented in CSenBaseElement, and CSenElement. |
|
Remove an element from the childs.
Implemented in CSenBaseElement, and CSenElement. |
|
Remove an element from the childs.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
Gets the root element. If no parent element, returns this element.
Implemented in CSenBaseElement, and CSenElement. |
|
(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.
Implemented in CSenBaseElement, and CSenElement. |
|
Sets the content to the element. Old content is overwritten.
Implemented in CSenBaseElement, and CSenElement. |
|
Setter for Element's namespace URI.
Implemented in CSenBaseElement, and CSenElement. |
|
Setter for Element's namespace URI.
Implemented in CSenBaseElement, and CSenElement. |
|
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.
Implemented in CSenBaseElement, and CSenElement. |
|
Setter for namespace prefix of this element.
Implemented in CSenBaseElement, and CSenElement. |
|
Writes this element as XML, in UTF-8 form to a stream.
Implemented in CSenBaseElement, and CSenElement. |
|
Element writes its namespaces to a write stream using UTF-8 charset encoding.
Implemented in CSenBaseElement, and CSenElement. |