TXmlEngBinaryContainer Class Reference
#include
<xml/dom/xmlengbinarycontainer.h>
Link against: xmlenginedom.lib
class TXmlEngBinaryContainer : public TXmlEngDataContainer |
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] |
TXmlEngBinaryContainer ( void * )
TXmlEngBinaryContainer | ( | void * | aInternal | ) | [protected, inline] |
Parameter | Description | aInternal | node pointer |
Member Function Documentation
AppendContentsL ( const TDesC8 & )
IMPORT_C void | AppendContentsL | ( | const TDesC8 & | aData | ) | |
Appends contents to binary container
- leave
- KXmlEngErrNullNode Node is NULL
- leave
-
Parameter | Description | aData | Content to be appended |
Contents ( )
IMPORT_C TPtrC8 | Contents | ( | ) | const |
Get content of the container.
Returns: The contents of the container
SetContentsL ( const TDesC8 & )
IMPORT_C void | SetContentsL | ( | const TDesC8 & | aNewContents | ) | |
Copies the given string and sets the contents of the binary container
- leave
- KXmlEngErrNullNode Node is NULL
- leave
-
Parameter | Description | aNewContents | The actual value to store |