TXmlEngBinaryContainer Class Reference

#include <xml/dom/xmlengbinarycontainer.h>

Link against: xmlenginedom.lib

class TXmlEngBinaryContainer : public TXmlEngDataContainer

Inherits from

Public Member Functions
TXmlEngBinaryContainer()
IMPORT_C voidAppendContentsL(const TDesC8 &)
IMPORT_C TPtrC8Contents()
IMPORT_C voidSetContentsL(const TDesC8 &)
Protected Member Functions
TXmlEngBinaryContainer(void *)
Inherited Attributes
TXmlEngNode::iInternal
Inherited Enumerations
TXmlEngNode:TXmlEngDOMNodeType
Inherited Functions
TXmlEngDataContainer::Cid()const
TXmlEngDataContainer::Size()const
TXmlEngDataContainer::TXmlEngDataContainer()
TXmlEngDataContainer::TXmlEngDataContainer(void *)
TXmlEngNode::AddUserData(MXmlEngUserData *)
TXmlEngNode::AppendChildL(TXmlEngNode)
TXmlEngNode::AsAttr()const
TXmlEngNode::AsBinaryContainer()const
TXmlEngNode::AsCDATASection()const
TXmlEngNode::AsChunkContainer()const
TXmlEngNode::AsComment()const
TXmlEngNode::AsDataContainer()const
TXmlEngNode::AsDocumentFragment()const
TXmlEngNode::AsElement()const
TXmlEngNode::AsEntityReference()const
TXmlEngNode::AsFileContainer()const
TXmlEngNode::AsNamespace()const
TXmlEngNode::AsProcessingInstruction()const
TXmlEngNode::AsText()const
TXmlEngNode::BaseUriL(RBuf8 &)const
TXmlEngNode::CopyL()const
TXmlEngNode::CopyToL(TXmlEngNode)const
TXmlEngNode::DoUnlinkNode()
TXmlEngNode::FirstChild()const
TXmlEngNode::GetChildNodes(RXmlEngNodeList< TXmlEngNode > &)const
TXmlEngNode::HasAttributes()const
TXmlEngNode::HasChildNodes()const
TXmlEngNode::InnerXmlL(RBuf8 &)
TXmlEngNode::IsDefaultNamespaceL(const TDesC8 &)const
TXmlEngNode::IsNull()const
TXmlEngNode::IsSameNode(TXmlEngNode)const
TXmlEngNode::IsSimpleTextContents()const
TXmlEngNode::LastChild()const
TXmlEngNode::LinkBefore(TXmlEngNode)
TXmlEngNode::LookupNamespaceUriL(const TDesC8 &)const
TXmlEngNode::LookupPrefixL(const TDesC8 &)const
TXmlEngNode::MoveAfterSibling(TXmlEngNode)
TXmlEngNode::MoveBeforeSibling(TXmlEngNode)
TXmlEngNode::MoveTo(TXmlEngNode)
TXmlEngNode::MoveToL(TXmlEngNode)
TXmlEngNode::Name()const
TXmlEngNode::NamespaceDeclaration()const
TXmlEngNode::NamespaceUri()const
TXmlEngNode::NextSibling()const
TXmlEngNode::NodeType()const
TXmlEngNode::NotNull()const
TXmlEngNode::OuterXmlL(RBuf8 &)
TXmlEngNode::OwnerDocument()const
TXmlEngNode::ParentNode()const
TXmlEngNode::Prefix()const
TXmlEngNode::PreviousSibling()const
TXmlEngNode::ReconcileNamespacesL()
TXmlEngNode::Remove()
TXmlEngNode::RemoveUserData()
TXmlEngNode::ReplaceWith(TXmlEngNode)
TXmlEngNode::ReplaceWithL(TXmlEngNode)
TXmlEngNode::SetAsFirstSibling()
TXmlEngNode::SetAsLastSibling()
TXmlEngNode::SetValueL(const TDesC8 &)
TXmlEngNode::SubstituteForL(TXmlEngNode)
TXmlEngNode::TXmlEngNode()
TXmlEngNode::TXmlEngNode(void *)
TXmlEngNode::Unlink()
TXmlEngNode::UserData()const
TXmlEngNode::Value()const
TXmlEngNode::WholeTextContentsCopyL(RBuf8 &)const

Detailed Description

This class represents binary data in a DOM tree.

Binary data is treated in general as text nodes in DOM tree. Data is stored in process's heap memory.

Sample code for creating binary container:
     RXmlEngDOMImplementation domImpl;
     domImpl.OpenL();        // opening DOM implementation object 
     RXmlEngDocument iDoc; 
     // create document element
     TXmlEngElement elem = iDoc.CreateDocumentElementL(_L8("doc"));
     // create binary container from buffer (str1) and CID equals cid
     TXmlEngBinaryContainer binData=iDoc.CreateBinaryContainerL(cid,*str1);  
     elem.AppendChildL(binData);      // append container to the dom tree       
     iDoc.Close();               // closing all opened objects
     domImpl.Close();

Constructor & Destructor Documentation

TXmlEngBinaryContainer ( )

TXmlEngBinaryContainer()[inline]

Default constructor

TXmlEngBinaryContainer ( void * )

TXmlEngBinaryContainer(void *aInternal)[protected, inline]

Constructor

ParameterDescription
aInternalnode pointer

Member Function Documentation

AppendContentsL ( const TDesC8 & )

IMPORT_C voidAppendContentsL(const TDesC8 &aData)
Appends contents to binary container
leave
KXmlEngErrNullNode Node is NULL
leave
  • One of the system-wide error codes

ParameterDescription
aDataContent to be appended

Contents ( )

IMPORT_C TPtrC8Contents()const

Get content of the container.

Returns: The contents of the container

SetContentsL ( const TDesC8 & )

IMPORT_C voidSetContentsL(const TDesC8 &aNewContents)
Copies the given string and sets the contents of the binary container
leave
KXmlEngErrNullNode Node is NULL
leave
  • One of the system-wide error codes

ParameterDescription
aNewContentsThe actual value to store