TXmlEngBinaryContainer Class Reference

Link against: xmlengineDOM.lib


#include <
xmlengbinarycontainer.h>

Inherits TXmlEngDataContainer.


Detailed Description

Instance of TXmlEngBinaryContainer class represents binary data in DOM tree.

Binary data is treated in general as text nodes in DOM tree. Some of the fields in xmlNode structure are reused in order to save memory. Data is stored in process's heap memory.

Sample code for creating binary container:

      RXmlEngDOMImplementation domImpl;
      domImpl.OpenL();        
      RXmlEngDocument iDoc; 
      TXmlEngElement elem = iDoc.CreateDocumentElementL(_L8("doc"));
      TXmlEngBinaryContainer binData=iDoc.CreateBinaryContainerL(cid,*str1);  
      elem.AppendChildL(binData);      
      iDoc.Close();               
      domImpl.Close();
Dll XmlEngineDOM.lib
Since:
S60 v3.2

Public Member Functions

IMPORT_C TPtrC8 Contents () const
 Get content of the container.
IMPORT_C void SetContentsL (const TDesC8 &aNewContents)
 Sets contents of binary container.
EXPORT_C void AppendContentsL (const TDesC8 &aData)
 Appends contents to binary container.
 TXmlEngBinaryContainer ()
 Default constructor.

Protected Member Functions

 TXmlEngBinaryContainer (void *aInternal)
 Constructor.

Constructor & Destructor Documentation

TXmlEngBinaryContainer::TXmlEngBinaryContainer  )  [inline]
 

Default constructor.

Since:
S60 v3.1
TXmlEngBinaryContainer::TXmlEngBinaryContainer void aInternal  )  [inline, protected]
 

Constructor.

Since:
S60 v3.1
Parameters:
aInternal node pointer

Member Function Documentation

EXPORT_C void TXmlEngBinaryContainer::AppendContentsL const TDesC8 &  aData  ) 
 

Appends contents to binary container.

Since:
S60 v3.2
Parameters:
aData Content to be appended to current content
IMPORT_C TPtrC8 TXmlEngBinaryContainer::Contents  )  const
 

Get content of the container.

Since:
S60 v3.2
Returns:
TPtrC8 with container content
IMPORT_C void TXmlEngBinaryContainer::SetContentsL const TDesC8 &  aNewContents  ) 
 

Sets contents of binary container.

Since:
S60 v3.2
Parameters:
aNewContents The actual value to store

The documentation for this class was generated from the following files:

Copyright © Nokia Corporation 2001-2007
Back to top