Link against: xmlengineDOM.lib
#include <xmlengdocument.h>
Inherits TXmlEngNode.
Inherited by RSenDocument.
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 |
|
Default constructor. Instance of RXmlEngDocument must be "opened" with one of OpenL() overloads.
|
|
Constructor.
|
|
Sets "document" property on the node and all its descendants to be this RXmlEngDocument node.
|
|
Creates complete copy of the document.
|
|
Closes document.
Reimplemented in RSenDocument. |
|
DISABLED for document; CloneDocumentL() must be used.
Reimplemented from TXmlEngNode. |
|
Creates new attribute,.
There is no way to create attributes with namespace (despite the DOM spec); you have to use one of the TXmlEngElement::AddNewAttributeL(..) methods instead Returned handler is the only reference to the allocated memory until you have attached the attribute to some element node |
|
Creates new binary container and copies the content string into it. Pointer to the container is stored in the document's data container list that can be fetched using GetDataContainerList().
|
|
Creates new CDATA section node and copies the content into it.
|
|
Creates new chunk container that stores reference to memory chunk. Pointer to the container is stored in the document's data container list that can be fetched using GetDataContainerList().
|
|
Creates new comment node and copies the content string into it.
|
|
Creates new element from specific namespace to be a root of the document tree. Any existing document element of the document is destroyed
|
|
Creates new element node that belongs to specific namespace. A namespace declaration node is created on the element.
|
|
Creates new entity reference node for aEntityName entity.
|
|
Creates new file container that stores reference to file in file system. Pointer to the container is stored in the document's data container list that can be fetched using GetDataContainerList().
|
|
Creates new processing instruction node and set its "target" and "data" values.
|
|
Creates new text node and copies the content string into it.
|
|
Get document element.
|
|
Retrieves base URI (if defined) of the document or NULL.
|
|
Looks for element with specified value of xml:id.
|
|
Retrieves an array of data containers owned by this document.
|
|
Get dom implementation.
|
|
Check if document is standalone.
|
|
Opens the document.
|
|
Opens the document.
|
|
Opens the document.
|
|
Registers specified attribute as xml:id. Not to search whole tree see
|
|
Registers specified attribute as xml:id. First parametr allows user, to specify sub-tree, not to search whole document. To search whole tree see
|
|
DISABLED for document; Destroy() must be used.
Reimplemented from TXmlEngNode. |
|
DISABLED for document; Destroy() must be used.
Reimplemented from TXmlEngNode. |
|
Saves document tree into memory buffer.
|
|
Serializes a document tree into provided output stream, which supports progressive writing of data. For nodes containing binary data in the form of BinaryDataContainer, FileContainer or ChunkContainer, client can implement custom serialization by implementing the interface MXmlEngDataSerializer and specify the pointer in iDataSerializer member of aSaveOptions parameter. If no custom serialization is specified, the binary data container nodes are serialized like text nodes.
|
|
Serializes document tree into a file. For nodes containing binary data in the form of BinaryDataContainer, FileContainer or ChunkContainer, client can implement custom serialization by implementing the interface MXmlEngDataSerializer and specify the pointer in iDataSerializer member of aSaveOptions parameter. If no custom serialization is specified, the binary data container nodes are serialized like text nodes.
|
|
Serializes document tree into a file. For nodes containing binary data in the form of BinaryDataContainer, FileContainer or ChunkContainer, client can implement custom serialization by implementing the interface MXmlEngDataSerializer and specify the pointer in iDataSerializer member of aSaveOptions parameter. If no custom serialization is specified, the binary data container nodes are serialized like text nodes.
|
|
Replaces (and destroys) document element with another one New document element is added as the last child to the document node.
|
|
Sets location of the document. Document's URI is used as top-level base URI definition.
|
|
Sets 'standalone' attribute of XML declaration for a document.
|
|
Sets XML version number to be shown in XML declaration when document is serialized.
|
|
Get document encoding.
|
|
Get xml version.
|
|
|
|
|
|
|
Pointer to DOM implementation object. |