| class TXmlEngBinaryContainer : public TXmlEngDataContainer |
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();
| Public Member Functions | |
|---|---|
| TXmlEngBinaryContainer() | |
| EXPORT_C void | AppendContentsL(const TDesC8 &) |
| IMPORT_C TPtrC8 | Contents() |
| IMPORT_C void | SetContentsL(const TDesC8 &) |
| Protected Member Functions | |
|---|---|
| TXmlEngBinaryContainer(void *) | |
| Inherited Enumerations | |
|---|---|
| TXmlEngNode:TXmlEngDOMNodeType | |
| Inherited Attributes | |
|---|---|
| TXmlEngNode::iInternal | |
| TXmlEngBinaryContainer | ( | void * | aInternal | ) | [protected, inline] |
Constructor
| void * aInternal | node pointer |
| EXPORT_C void | AppendContentsL | ( | const TDesC8 & | aData | ) |
Appends contents to binary container leave
KXmlEngErrNullNode Node is NULL
leave
One of the system-wide error codes
| const TDesC8 & aData | Content to be appended |
| IMPORT_C TPtrC8 | Contents | ( | ) | const |
Get content of the container. The contents of the container