Is a storage all nodes and information about XML data.
|
Public Member Functions |
IMPORT_C | RXmlEngDocument () |
| Default constructor.
|
IMPORT_C void | OpenL (RXmlEngDOMImplementation &aDOMImpl) |
| Opens the document.
|
IMPORT_C void | OpenL (RXmlEngDOMImplementation &aDOMImpl, void *aInternal) |
| Opens the document.
|
IMPORT_C void | OpenL (RXmlEngDOMImplementation &aDOMImpl, TXmlEngElement aRoot) |
| Opens the document.
|
IMPORT_C void | Close () |
| Closes document.
|
IMPORT_C TInt | SaveL (const TDesC &aFileName, TXmlEngNode aRoot=TXmlEngNode(), const TXmlEngSerializationOptions &aSaveOptions=TXmlEngSerializationOptions()) const |
| Serializes document tree into a file.
|
IMPORT_C TInt | SaveL (RFs &aRFs, const TDesC &aFileName, TXmlEngNode aRoot=TXmlEngNode(), const TXmlEngSerializationOptions &aSaveOptions=TXmlEngSerializationOptions()) const |
| Serializes document tree into a file.
|
IMPORT_C TInt | SaveL (MXmlEngOutputStream &aStream, TXmlEngNode aRoot=TXmlEngNode(), const TXmlEngSerializationOptions &aSaveOptions=TXmlEngSerializationOptions()) const |
| Serializes a document tree into provided output stream, which supports progressive writing of data.
|
IMPORT_C TInt | SaveL (RBuf8 &aBuffer, TXmlEngNode aRoot=TXmlEngNode(), const TXmlEngSerializationOptions &aSaveOptions=TXmlEngSerializationOptions()) const |
| Saves document tree into memory buffer.
|
IMPORT_C RXmlEngDocument | CloneDocumentL () const |
| Creates complete copy of the document.
|
IMPORT_C TXmlEngElement | CreateDocumentElementL (const TDesC8 &aName, const TDesC8 &aNamespaceUri=KNullDesC8, const TDesC8 &aPrefix=KNullDesC8) |
| Creates new element from specific namespace to be a root of the document tree.
|
IMPORT_C void | SetDocumentElement (TXmlEngElement aNewDocElement) |
| Replaces (and destroys) document element with another one New document element is added as the last child to the document node.
|
IMPORT_C TPtrC8 | XmlEncoding () const |
| Get document encoding.
|
IMPORT_C TPtrC8 | XmlVersion () const |
| Get xml version.
|
IMPORT_C TPtrC8 | DocumentUri () const |
| Retrieves base URI (if defined) of the document or NULL.
|
IMPORT_C TBool | IsStandalone () const |
| Check if document is standalone.
|
IMPORT_C void | SetXmlVersionL (const TDesC8 &aVersion) |
| Sets XML version number to be shown in XML declaration when document is serialized.
|
IMPORT_C void | SetDocumentUriL (const TDesC8 &aUri) |
| Sets location of the document.
|
IMPORT_C void | SetStandalone (TBool aStandalone) |
| Sets 'standalone' attribute of XML declaration for a document.
|
IMPORT_C RXmlEngDOMImplementation | Implementation () const |
| Get dom implementation.
|
IMPORT_C TXmlEngElement | DocumentElement () const |
| Get document element.
|
IMPORT_C TXmlEngNode | AdoptNodeL (TXmlEngNode aSource) |
| Sets "document" property on the node and all its descendants to be this RXmlEngDocument node.
|
IMPORT_C TXmlEngAttr | CreateAttributeL (const TDesC8 &aName, const TDesC8 &aValue=KNullDesC8) |
| Creates new attribute,.
|
IMPORT_C TXmlEngTextNode | CreateTextNodeL (const TDesC8 &aCharacters=KNullDesC8) |
| Creates new text node and copies the content string into it.
|
IMPORT_C TXmlEngBinaryContainer | CreateBinaryContainerL (const TDesC8 &aCid, const TDesC8 &aData) |
| Creates new binary container and copies the content string into it.
|
IMPORT_C TXmlEngChunkContainer | CreateChunkContainerL (const TDesC8 &aCid, const RChunk &aChunk, const TInt aChunkOffset, const TInt aDataSize) |
| Creates new chunk container that stores reference to memory chunk.
|
IMPORT_C TXmlEngFileContainer | CreateFileContainerL (const TDesC8 &aCid, const RFile &aFile) |
| Creates new file container that stores reference to file in file system.
|
IMPORT_C TXmlEngElement | CreateElementL (const TDesC8 &aLocalName, const TDesC8 &aNamespaceUri=KNullDesC8, const TDesC8 &aPrefix=KNullDesC8) |
| Creates new element node that belongs to specific namespace.
|
IMPORT_C TXmlEngComment | CreateCommentL (const TDesC8 &aText=KNullDesC8) |
| Creates new comment node and copies the content string into it.
|
IMPORT_C TXmlEngCDATASection | CreateCDATASectionL (const TDesC8 &aContents=KNullDesC8) |
| Creates new CDATA section node and copies the content into it.
|
IMPORT_C TXmlEngEntityReference | CreateEntityReferenceL (const TDesC8 &aEntityRef) |
| Creates new entity reference node for aEntityName entity.
|
IMPORT_C TXmlEngProcessingInstruction | CreateProcessingInstructionL (const TDesC8 &aTarget, const TDesC8 &aData=KNullDesC8) |
| Creates new processing instruction node and set its "target" and "data" values.
|
IMPORT_C void | RegisterXmlIdL (TXmlEngElement aStartElement, const TDesC8 &aLocalName, const TDesC8 &aNamespaceUri=KNullDesC8) |
| Registers specified attribute as xml:id.
|
IMPORT_C void | RegisterXmlIdL (const TDesC8 &aLocalName, const TDesC8 &aNamespaceUri=KNullDesC8) |
| Registers specified attribute as xml:id.
|
IMPORT_C TXmlEngElement | FindElementByXmlIdL (const TDesC8 &aValue) const |
| Looks for element with specified value of xml:id.
|
IMPORT_C void | GetDataContainerList (RArray< TXmlEngDataContainer > &aList) |
| Retrieves an array of data containers owned by this document.
|
Protected Member Functions |
| RXmlEngDocument (void *aInternal) |
| Constructor.
|
TXmlEngNode | CopyL () const |
| DISABLED for document; CloneDocumentL() must be used.
|
void | Remove () |
| DISABLED for document; Destroy() must be used.
|
void | ReplaceWith (TXmlEngNode aNode) |
| DISABLED for document; Destroy() must be used.
|
Protected Attributes |
RXmlEngDOMImplementation * | iImpl |
| Pointer to DOM implementation object.
|
Friends |
class | RXmlEngDOMParser |
class | TXmlEngNode |
class | TXmlEngAttr |
class | TXmlEngElement |
class | RXmlEngDOMImplementation |