#include <xml/dom/xmlengbinarycontainer.h>
Link against: xmlenginedom.lib
| class TXmlEngBinaryContainer : public TXmlEngDataContainer |
| Public Member Functions | |
|---|---|
| TXmlEngBinaryContainer() | |
| IMPORT_C void | AppendContentsL(const TDesC8 &) |
| IMPORT_C TPtrC8 | Contents() |
| IMPORT_C void | SetContentsL(const TDesC8 &) |
| Protected Member Functions | |
|---|---|
| TXmlEngBinaryContainer(void *) | |
| Inherited Attributes | |
|---|---|
| TXmlEngNode::iInternal | |
| Inherited Enumerations | |
|---|---|
| TXmlEngNode:TXmlEngDOMNodeType | |
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.
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();
| TXmlEngBinaryContainer | ( | void * | aInternal | ) | [protected, inline] |
Constructor
| Parameters | |
|---|---|
| aInternal | node pointer |
| IMPORT_C void | AppendContentsL | ( | const TDesC8 & | aData | ) |
| Parameters | |
|---|---|
| aData | Content to be appended |
| Leave Codes | |
|---|---|
| KXmlEngErrNullNode | Node is NULL |
| IMPORT_C TPtrC8 | Contents | ( | ) | const |
Get content of the container.
| IMPORT_C void | SetContentsL | ( | const TDesC8 & | aNewContents | ) |
| Parameters | |
|---|---|
| aNewContents | The actual value to store |
| Leave Codes | |
|---|---|
| KXmlEngErrNullNode | Node is NULL |