CSenFragmentBase Class Reference

#include <mw/SenFragmentBase.h>

Link against: SenFragment.dll

class CSenFragmentBase : public CBase

Inherits from

  • CSenFragmentBase
    Protected Attributes
    RSenDocument iDocument
    TXmlEngElement iElement
    TInt iState
    CBufFlat *ipContentBuf
    RBufWriteStream *ipContentWriteStream
    CSenFragmentBase *ipDelegate
    RPointerArray< CSenNamespaceData > *ipNamespaceArray
    CSenFragmentBase *ipOwner
    CSenParser *ipParser
    Public Member Functions
    virtual ~CSenFragmentBase()
    virtual IMPORT_C RSenDocument &AsDocumentL()
    virtual IMPORT_C TXmlEngElementAsElementL()
    virtual IMPORT_C HBufC8 *AsXmlL()
    virtual IMPORT_C HBufC *AsXmlUnicodeL()
    virtual IMPORT_C TBoolConsistsOfL(CSenFragmentBase &)
    virtual IMPORT_C TPtrC8ContentL()
    virtual IMPORT_C TXmlEngElementExtractElement()
    virtual IMPORT_C TAny *GetExtendedInterface(const TInt32)
    virtual IMPORT_C TPtrC8LocalName()
    virtual IMPORT_C TXmlEngNamespaceNamespace(const TDesC8 &)
    IMPORT_C CSenFragmentBase *NewL(const TXmlEngElement &)
    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &)
    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &, const TDesC8 &)
    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &)
    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument &)
    IMPORT_C CSenFragmentBase *NewL(TXmlEngElement &, RSenDocument &)
    virtual IMPORT_C TPtrC8NsPrefix()
    virtual IMPORT_C TPtrC8NsUri()
    virtual IMPORT_C voidOnContentL(const TDesC8 &, TInt)
    virtual IMPORT_C voidOnDelegateParsingL(CSenFragmentBase &)
    virtual IMPORT_C voidOnDelegateParsingL(const RTagInfo &, const RAttributeArray &, TInt)
    virtual IMPORT_C voidOnEndDocumentL(TInt)
    virtual IMPORT_C voidOnEndElementL(const RTagInfo &, TInt)
    virtual IMPORT_C voidOnEndPrefixMappingL(const RString &, TInt)
    virtual IMPORT_C voidOnError(TInt)
    virtual IMPORT_C voidOnIgnorableWhiteSpaceL(const TDesC8 &, TInt)
    virtual IMPORT_C voidOnProcessingInstructionL(const TDesC8 &, const TDesC8 &, TInt)
    virtual IMPORT_C voidOnResumeParsingFromL(const RTagInfo &, TInt)
    virtual IMPORT_C voidOnSkippedEntityL(const RString &, TInt)
    virtual IMPORT_C voidOnStartDocumentL(const RDocumentParameters &, TInt)
    virtual IMPORT_C voidOnStartElementL(const RTagInfo &, const RAttributeArray &, TInt)
    virtual IMPORT_C voidOnStartPrefixMappingL(const RString &, const RString &, TInt)
    IMPORT_C voidOnWriteEndElementL(const RTagInfo &)
    IMPORT_C voidOnWriteStartElementL(const RTagInfo &, const RAttributeArray &)
    virtual IMPORT_C voidResetContentL()
    IMPORT_C voidSetContentHandler(CSenFragmentBase &)
    IMPORT_C voidSetDocument(RSenDocument &)
    virtual IMPORT_C voidSetOwner(CSenFragmentBase &)
    virtual IMPORT_C voidWriteAsXMLToL(RWriteStream &)
    Protected Member Functions
    CSenFragmentBase()
    virtual IMPORT_C voidAddAttributesL(const RAttributeArray &)
    virtual IMPORT_C voidAddAttributesToElementL(TXmlEngElement, const RAttributeArray &)
    virtual IMPORT_C voidAddContentL(const TDesC8 &)
    virtual IMPORT_C voidAddNamespacesL()
    IMPORT_C voidBaseConstructL(const TXmlEngElement &)
    IMPORT_C voidBaseConstructL(const TDesC8 &)
    IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &)
    IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
    IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &)
    IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &)
    IMPORT_C voidBaseConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument &)
    IMPORT_C voidBaseConstructL(TXmlEngElement &, RSenDocument &)
    virtual IMPORT_C TBoolConsistsOfL(TXmlEngElement &, TXmlEngElement &)
    IMPORT_C TPtrC8ContentOf(const TDesC8 &)
    voidRenameL(const TDesC8 &, const TDesC8 &, const TDesC8 &)
    voidRenameL(const TDesC8 &, const TDesC8 &)
    voidRenameLocalNameL(const TDesC8 &)
    voidRenameNamespaceL(const TDesC8 &)
    voidRenameNamespaceL(const TDesC8 &, const TDesC8 &)
    voidRenamePrefixL(const TDesC8 &)
    virtual IMPORT_C voidSetContentL(const TDesC8 &)
    IMPORT_C TXmlEngElementSetContentOfL(const TDesC8 &, const TDesC8 &)
    IMPORT_C voidStartSavingContent()
    Inherited Functions
    CBase::CBase()
    CBase::Delete(CBase *)
    CBase::Extension_(TUint,TAny *&,TAny *)
    CBase::operator new(TUint)
    CBase::operator new(TUint,TAny *)
    CBase::operator new(TUint,TLeave)
    CBase::operator new(TUint,TLeave,TUint)
    CBase::operator new(TUint,TUint)
    CBase::~CBase()

    Detailed Description

    Class implements basic functionality of an XML fragment Typically base fragment is used to parse certain part of some XML document. The element is identified by local name (or qualified name) and namespace. All child elements between start tag and and end tag defined this fragment will become content of this BaseFragment. In other words, BaseFragment has all data inside a single element. BaseFragment will parse only namespace (xmlns) attributes from a document and rest of the attributes are to be handled by subclasses, which should overwrite SetAttributesL() method to achieve this. The CSenFragmentReader class will do the actual parsing and this class will act as content handler for XML parser SAX events.
    Since
    Series60 4.0

    Member Attribute Documentation

    iDocument

    RSenDocument iDocument[protected]

    iElement

    TXmlEngElement iElement[protected]

    iState

    TInt iState[protected]

    ipContentBuf

    CBufFlat *ipContentBuf[protected]

    ipContentWriteStream

    RBufWriteStream *ipContentWriteStream[protected]

    ipDelegate

    CSenFragmentBase *ipDelegate[protected]

    ipNamespaceArray

    RPointerArray< CSenNamespaceData > *ipNamespaceArray[protected]

    ipOwner

    CSenFragmentBase *ipOwner[protected]

    ipParser

    CSenParser *ipParser[protected]

    Constructor & Destructor Documentation

    CSenFragmentBase ( )

    IMPORT_CCSenFragmentBase()[protected]

    C++ default constructor.

    ~CSenFragmentBase ( )

    IMPORT_C~CSenFragmentBase()[virtual]

    Destructor.

    Member Function Documentation

    AddAttributesL ( const RAttributeArray & )

    IMPORT_C voidAddAttributesL(const RAttributeArray &apAttrs)[protected, virtual]

    Adds new XML attributes to this fragment. Can be overridden to replace old attributes.

    AddAttributesToElementL ( TXmlEngElement, const RAttributeArray & )

    IMPORT_C voidAddAttributesToElementL(TXmlEngElementelement,
    const RAttributeArray &apAttrs
    )[protected, virtual]

    Adds new XML attributes to specified element. Can be overridden to replace old attributes.

    AddContentL ( const TDesC8 & )

    IMPORT_C voidAddContentL(const TDesC8 &aContent)[protected, virtual]
    Adds the content.
    Since
    Series60 4.0
    ParameterDescription
    aContentContent to be set.

    AddNamespacesL ( )

    IMPORT_C voidAddNamespacesL()[protected, virtual]
    Adds namespaces from internal array for the fragment.
    Since
    Series60 4.0

    AsDocumentL ( )

    IMPORT_C RSenDocument &AsDocumentL()[virtual]

    Returns the current XML element of this fragment. If element has not been set, this method will initialize new, un-initialized element. Method leaves with if there is not enough memory (OOM)

    Returns: reference to the element of this fragment

    AsElementL ( )

    IMPORT_C TXmlEngElementAsElementL()[virtual]

    Returns the current XML element of this fragment. If element has not been set, this method will initialize new, un-initialized element. Method leaves with if there is not enough memory (OOM)

    Returns: reference to the element of this fragment

    AsXmlL ( )

    IMPORT_C HBufC8 *AsXmlL()[virtual]
    Gets the fragment data as an UTF-8 form XML.
    Since
    Series60 4.0

    Returns: fragment as XML. Caller takes ownership.

    AsXmlUnicodeL ( )

    IMPORT_C HBufC *AsXmlUnicodeL()[virtual]
    Gets the fragment data as an unicode XML.
    Since
    Series60 4.0

    Returns: fragment as XML. Caller takes ownership.

    BaseConstructL ( const TXmlEngElement & )

    IMPORT_C voidBaseConstructL(const TXmlEngElement &aSrc)[protected]
    Following BaseConstructL methods should be called from ConstructL() methods of some deriving (fragment) class. BaseConstructL, where an element is given as initializer.
    Since
    Series60 4.0

    BaseConstructL ( const TDesC8 & )

    IMPORT_C voidBaseConstructL(const TDesC8 &aLocalName)[protected]
    BaseConstructL setting XML localname for this fragment.
    Since
    Series60 4.0
    ParameterDescription
    aLocalNameXML localname for this fragment

    BaseConstructL ( const TDesC8 &, const TDesC8 & )

    IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName
    )[protected]
    BaseConstructL offering possibility to set XML namespace and localname.
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI for this fragment
    aLocalNameXML localname for this fragment

    BaseConstructL ( const TDesC8 &, const TDesC8 &, const TDesC8 & )

    IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix
    )[protected]
    Base constructor
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI for this fragment
    aLocalNameXML localname for this fragment

    BaseConstructL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray & )

    IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix,
    const RAttributeArray &aAttrs
    )[protected]
    Base constructor
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI for this fragment
    aLocalNameXML localname for this fragment
    aAttrsXML attributes for this fragment

    BaseConstructL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement & )

    IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix,
    const RAttributeArray &aAttrs,
    TXmlEngElement &aParent
    )[protected]
    Base constructor
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI for this fragment
    aLocalNameXML localname for this fragment
    aAttrsXML attributes for this fragment
    aParentparent to be set for this fragmemt

    BaseConstructL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument & )

    IMPORT_C voidBaseConstructL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix,
    const RAttributeArray &aAttrs,
    TXmlEngElement &aParent,
    RSenDocument &aOwnerDocument
    )[protected]
    Base constructor
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI for this fragment
    aLocalNameXML localname for this fragment
    aAttrsXML attributes for this fragment
    aParentParent to be set for this fragmemt
    aOwnerDocumentThe document which will be the owner of the elements of this fragment

    BaseConstructL ( TXmlEngElement &, RSenDocument & )

    IMPORT_C voidBaseConstructL(TXmlEngElement &aRootElement,
    RSenDocument &aOwnerDocument
    )[protected]
    Base constructor
    Since
    Series60 4.0
    ParameterDescription
    aRootElementThe element which will be the root element of this fragment
    aOwnerDocumentThe document which will be the owner of the elements of this fragment

    ConsistsOfL ( CSenFragmentBase & )

    IMPORT_C TBoolConsistsOfL(CSenFragmentBase &aCandidate)[virtual]
    Checks if fragment matches to another fragment by its content and child elements. Fragment can contain more data than the given candidate.
    Since
    Series60 4.0
    ParameterDescription
    aCandidateThe pattern to be matched. Must contain same or less data for match to come true.

    Returns: ETrue if content and possible children match exactly to given pattern. EFalse otherwise.

    ConsistsOfL ( TXmlEngElement &, TXmlEngElement & )

    IMPORT_C TBoolConsistsOfL(TXmlEngElement &aElement,
    TXmlEngElement &aCandidate
    )[protected, virtual]

    ContentL ( )

    IMPORT_C TPtrC8ContentL()[virtual]
    Getter for the content,which is returned as UTF-8 form XML.
    Since
    Series60 4.0

    Returns: content as UTF-8 form XML.

    ContentOf ( const TDesC8 & )

    IMPORT_C TPtrC8ContentOf(const TDesC8 &aLocalName)[protected]
    Gets the content of a given element.
    Since
    Series60 4.0
    ParameterDescription
    aLocalNameThe local name of the element which content is asked

    Returns: the content which was asked

    ExtractElement ( )

    IMPORT_C TXmlEngElementExtractElement()[virtual]
    Etracts the XML element from the fragment, leaving the fragment empty. Note(!): the return value (CSenElement) STRONGLY suggests that subclasses INHERIT CSenFragment in order properly comply the requirement of the ExtractElement() implementation.
    Since
    Series60 4.0

    Returns: the current object as element. May return NULL. Ownership IS TRANSFERRED to the caller.

    GetExtendedInterface ( const TInt32 )

    IMPORT_C TAny *GetExtendedInterface(const TInt32aUid)[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    LocalName ( )

    IMPORT_C TPtrC8LocalName()const [virtual]
    Since
    Series60 4.0

    Returns: the localname of this fragment as UTF-8 form descriptor

    Namespace ( const TDesC8 & )

    IMPORT_C TXmlEngNamespaceNamespace(const TDesC8 &aPrefix)[virtual]
    Gets the namespace object with a given prefix.
    Since
    Series60 4.0

    Returns: namespace with the given prefix. If not found or given prefix is zero length, will return NULL.

    NewL ( const TXmlEngElement & )

    IMPORT_C CSenFragmentBase *NewL(const TXmlEngElement &aElement)[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0
    ParameterDescription
    aElementis the element where construction data will be copied from.

    NewL ( const TDesC8 & )

    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &aLocalName)[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0

    NewL ( const TDesC8 &, const TDesC8 & )

    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName
    )[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0

    NewL ( const TDesC8 &, const TDesC8 &, const TDesC8 & )

    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix
    )[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI
    aLocalNameXML localname
    aPrefixXML prefix

    NewL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray & )

    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix,
    const RAttributeArray &apAttrs
    )[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI
    aLocalNameXML localname
    aPrefixXML prefix
    apAttrsXML attributes

    NewL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement & )

    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix,
    const RAttributeArray &apAttrs,
    TXmlEngElement &aParent
    )[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI
    aLocalNameXML localname
    aPrefixXML prefix
    apAttrsXML attributes
    aParentParent element

    NewL ( const TDesC8 &, const TDesC8 &, const TDesC8 &, const RAttributeArray &, TXmlEngElement &, RSenDocument & )

    IMPORT_C CSenFragmentBase *NewL(const TDesC8 &aNsUri,
    const TDesC8 &aLocalName,
    const TDesC8 &aPrefix,
    const RAttributeArray &apAttrs,
    TXmlEngElement &aParent,
    RSenDocument &aOwnerDocument
    )[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0
    ParameterDescription
    aNsUriXML namespace URI
    aLocalNameXML localname
    aPrefixXML prefix
    apAttrsXML attributes
    aParentParent element
    aOwnerDocumentThe document which will be the owner of the elements of this fragment

    NewL ( TXmlEngElement &, RSenDocument & )

    IMPORT_C CSenFragmentBase *NewL(TXmlEngElement &aRootElement,
    RSenDocument &aOwnerDocument
    )[static]
    Standard 2 phase constructor.
    Since
    Series60 4.0
    ParameterDescription
    aRootElementThe element which will be the root element of this fragment.
    aOwnerDocumentThe document which will be the owner of the elements of this fragment

    NsPrefix ( )

    IMPORT_C TPtrC8NsPrefix()const [virtual]
    Getter for namespace prefix of this fragment.
    Since
    Series60 4.0

    Returns: namespace prefix or KNullDesC if not set.

    NsUri ( )

    IMPORT_C TPtrC8NsUri()const [virtual]
    Getter for Fragment's namespace URI..
    Since
    Series60 4.0

    Returns: Namespace URI or KNullDesC if not set.

    OnContentL ( const TDesC8 &, TInt )

    IMPORT_C voidOnContentL(const TDesC8 &aBytes,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnDelegateParsingL ( CSenFragmentBase & )

    IMPORT_C voidOnDelegateParsingL(CSenFragmentBase &aDelegate)[virtual]
    Let the delegate MSenFragment handle the following SAX events. This fragment is made the owner of the delegate and the delegate is expected to make this MSenFragment the receiver of SAX events once it has seen the end element for itself.
    Since
    Series60 4.0
    ParameterDescription
    aDelegateis the fragment to start handling the SAX events.

    OnDelegateParsingL ( const RTagInfo &, const RAttributeArray &, TInt )

    IMPORT_C voidOnDelegateParsingL(const RTagInfo &aElement,
    const RAttributeArray &aAttributes,
    TIntaErrorCode
    )[virtual]
    Creates a new fragment and lets the created MSenFragment handle the following SAX events. This fragment is made the owner of the delegate and the delegate is expected to make this MSenFragment act as receiver for SAX events (callbacks) once it has seen the end element for itself.
    Since
    Series60 4.0
    ParameterDescription
    aElementThe RTagInfo class holding information that describes the element.
    aAttributesThe attributes of the new element
    aErrorCodeError code

    OnEndDocumentL ( TInt )

    IMPORT_C voidOnEndDocumentL(TIntaErrorCode)[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnEndElementL ( const RTagInfo &, TInt )

    IMPORT_C voidOnEndElementL(const RTagInfo &aElement,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnEndPrefixMappingL ( const RString &, TInt )

    IMPORT_C voidOnEndPrefixMappingL(const RString &aPrefix,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnError ( TInt )

    IMPORT_C voidOnError(TIntaErrorCode)[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnIgnorableWhiteSpaceL ( const TDesC8 &, TInt )

    IMPORT_C voidOnIgnorableWhiteSpaceL(const TDesC8 &aBytes,
    TIntErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnProcessingInstructionL ( const TDesC8 &, const TDesC8 &, TInt )

    IMPORT_C voidOnProcessingInstructionL(const TDesC8 &aTarget,
    const TDesC8 &aData,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnResumeParsingFromL ( const RTagInfo &, TInt )

    IMPORT_C voidOnResumeParsingFromL(const RTagInfo &aElement,
    TIntaErrorCode
    )[virtual]
    Leave codes: Resumes parsing to be handled by this fragment. Usually called by some delegate fragment which was set to be content handler because this fragment called DelegateParsingL().
    Since
    Series60 4.0
    ParameterDescription
    aElementThe RTagInfo class holding information that describes the element.
    aErrorCodeError code

    OnSkippedEntityL ( const RString &, TInt )

    IMPORT_C voidOnSkippedEntityL(const RString &aName,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnStartDocumentL ( const RDocumentParameters &, TInt )

    IMPORT_C voidOnStartDocumentL(const RDocumentParameters &aDocParam,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnStartElementL ( const RTagInfo &, const RAttributeArray &, TInt )

    IMPORT_C voidOnStartElementL(const RTagInfo &aElement,
    const RAttributeArray &aAttributes,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnStartPrefixMappingL ( const RString &, const RString &, TInt )

    IMPORT_C voidOnStartPrefixMappingL(const RString &aPrefix,
    const RString &aUri,
    TIntaErrorCode
    )[virtual]
    Callback function implementing the XML content handler interface. Inheriting classes can override these.
    Since
    Series60 3.1

    See also: MContentHandler

    OnWriteEndElementL ( const RTagInfo & )

    IMPORT_C voidOnWriteEndElementL(const RTagInfo &aElement)
    Writes the end element tag to the content stream. Derivants can override the basic usage used in BaseFragment.
    Since
    Series60 4.0
    ParameterDescription
    aElementThe RTagInfo class holding information that describes the element.

    OnWriteStartElementL ( const RTagInfo &, const RAttributeArray & )

    IMPORT_C voidOnWriteStartElementL(const RTagInfo &aElement,
    const RAttributeArray &aAttributes
    )
    Sets the attributes for the fragment. BaseFragment parses only namespace (xmlns) attributes from the document. Subclasses should override this method if they are intrested of handling any other XML attributes and their corresponding values.
    Since
    Series60 4.0
    Since
    Series60 4.0
    ParameterDescription
    aElementThe RTagInfo class holding information that describes the element.
    aAttributesThe attributes of the new element

    RenameL ( const TDesC8 &, const TDesC8 &, const TDesC8 & )

    voidRenameL(const TDesC8 &aLocalName,
    const TDesC8 &aPrefix,
    const TDesC8 &aNamespace
    )[protected]

    Method renames the XML properties of this fragment.

    ParameterDescription
    aLocalNameXML localname for this fragment
    aPrefixXML namespace prefix for this fragment
    aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory (OOM)

    RenameL ( const TDesC8 &, const TDesC8 & )

    voidRenameL(const TDesC8 &aLocalName,
    const TDesC8 &aNamespace
    )[protected]

    Method renames the XML properties of this fragment.

    ParameterDescription
    aLocalNameXML localname for this fragment
    aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory (OOM)

    RenameLocalNameL ( const TDesC8 & )

    voidRenameLocalNameL(const TDesC8 &aLocalName)[protected]

    Renames local name for this XML fragment.

    ParameterDescription
    aLocalNameXML localname for this fragment Method leaves with if there is not enough memory (OOM)

    RenameNamespaceL ( const TDesC8 & )

    voidRenameNamespaceL(const TDesC8 &aNamespace)[protected]

    Renames namespace URI for this XML fragment.

    ParameterDescription
    aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory(OOM)

    RenameNamespaceL ( const TDesC8 &, const TDesC8 & )

    voidRenameNamespaceL(const TDesC8 &aPrefix,
    const TDesC8 &aNamespace
    )[protected]

    Renames namespace prefix and namespace URI for this XML fragment.

    ParameterDescription
    aPrefixXML namespace prefix for this fragment
    aNamespaceXML namespace URI for this fragment Method leaves with if there is not enough memory (OOM)

    RenamePrefixL ( const TDesC8 & )

    voidRenamePrefixL(const TDesC8 &aPrefix)[protected]

    Renames namespace prefix for this XML fragment.

    ParameterDescription
    aPrefixXML namespace prefix for this fragment Method leaves with if there is not enough memory (OOM)

    ResetContentL ( )

    IMPORT_C voidResetContentL()[virtual]
    Since
    Series60 4.0
    Since
    Series60 4.0

    Returns: Detaches this fragment from its owner. All namespace references from possible parent fragments are declared in the scope of this fragment prior detaching. Resets the content of the fragment, and resets the namespaces.

    SetContentHandler ( CSenFragmentBase & )

    IMPORT_C voidSetContentHandler(CSenFragmentBase &aContentHandler)

    SetContentL ( const TDesC8 & )

    IMPORT_C voidSetContentL(const TDesC8 &aContent)[protected, virtual]
    Sets content to a child element. If no element with given local name is not found, new one is added and content is set to that one.
    Since
    Series60 4.0
    ParameterDescription
    aContentContent to be set.

    SetContentOfL ( const TDesC8 &, const TDesC8 & )

    IMPORT_C TXmlEngElementSetContentOfL(const TDesC8 &aLocalName,
    const TDesC8 &aContent
    )[protected]
    Sets content to a child element. If no element with given local name is not found, new one is added and content is set to that one.
    Since
    Series60 4.0
    ParameterDescription
    aLocalNameThe local name of element which content is about to be set
    aContentContent to be set.

    Returns: the element where content was set. Leave codes: KErrSenInvalidCharacters if aLocalName contains illegal characters. KErrSenZeroLengthDescriptor if aLocalName is zero length.

    SetDocument ( RSenDocument & )

    IMPORT_C voidSetDocument(RSenDocument &aDocument)

    Sets the RSenDocument

    SetOwner ( CSenFragmentBase & )

    IMPORT_C voidSetOwner(CSenFragmentBase &aFragment)[virtual]
    Sets a new parent for this fragment.
    Since
    Series60 4.0

    StartSavingContent ( )

    IMPORT_C voidStartSavingContent()[protected]

    StartSavingContent changes the internal SAX parsing state of this fragment to KSenStateSave, which means that next call to OnStartElementL is treated as data, and not ignored (in DOM fragment implementation, it would be "extended" into a DOM object).

    WriteAsXMLToL ( RWriteStream & )

    IMPORT_C voidWriteAsXMLToL(RWriteStream &aWs)[virtual]
    Invokes AsElement().WriteAsXMLToL(aWs);
    Since
    Series60 4.0
    ParameterDescription
    aWsis the stream into which the UTF-8 form XML will be written.