CMDXMLDocument Class Reference
class CMDXMLDocument : public CBase |
An XML document.
An object of this type owns the root element of a DOM tree and is not itself an XML node.
Constructor & Destructor Documentation
CMDXMLDocument(MXMLDtd &)
CMDXMLDocument | ( | MXMLDtd & | aDtdRepresentation | ) | [private] |
CMDXMLDocument()
CMDXMLDocument | ( | ) | [private] |
~CMDXMLDocument()
IMPORT_C | ~CMDXMLDocument | ( | ) | [virtual] |
Member Functions Documentation
CanElementHaveChildren(const TDesC &)
IMPORT_C TBool | CanElementHaveChildren | ( | const TDesC & | aElement | ) | const |
Tests whether it is valid for a particular element to have children.
Parameters
const TDesC & aElement | the name of the element to be tested |
ConstructL()
void | ConstructL | ( | ) | [private] |
DocTypeTag()
const TDesC & | DocTypeTag | ( | ) | const [inline] |
Gets the document's DOCTYPE declaration.
DocumentElement()
Gets the root element of the DOM tree.
DtdRepresentation()
const MXMLDtd & | DtdRepresentation | ( | ) | const |
Gets a reference to the MXMLDtd object to use for DTD validation checking.
NewL(MXMLDtd &)
Allocates and constructs a new
CMDXMLDocument.
- leave
- KErrNoMemory Out of memory
Parameters
MXMLDtd & iDtdRepresentation | DTD for the document |
NewL()
Allocates and constructs a new CMDXMLDocument, without specifying a DTD.
Documents created using this function will not be able to validate the XML.
-
leave
- KErrNoMemory Out of memory
NewLC(MXMLDtd &)
Allocates and constructs a new
CMDXMLDocument, leaving the object on the cleanup stack.
- leave
- KErrNoMemory Out of memory
Parameters
MXMLDtd & iDtdRepresentation | DTD for the document |
NewLC()
Allocates and constructs a new CMDXMLDocument, without specifying a DTD, leaving the object on the cleanup stack.
Documents created using this function will not be able to validate the XML.
-
leave
- KErrNoMemory Out of memory
PlaceholderForRemovedExport1(MXMLDtd &)
IMPORT_C void | PlaceholderForRemovedExport1 | ( | MXMLDtd & | aDtdRepresentation | ) | [private] |
PlaceholderForRemovedExport2()
IMPORT_C void | PlaceholderForRemovedExport2 | ( | ) | [private] |
SetDocTypeTagL(const TDesC &)
IMPORT_C TBool | SetDocTypeTagL | ( | const TDesC & | aDocTypeTag | ) | |
Sets the document's DOCTYPE declaration.
-
leave
- KErrNoMemory Out of memory
Parameters
const TDesC & aDocTypeTag | The XML DOCTYPE declaration. This must begin<!DOCTYPE and end >. |
SetDocumentElement(CMDXMLElement *)
void | SetDocumentElement | ( | CMDXMLElement * | aRootElement | ) | [private, inline] |
SetVersionTagL(const TDesC &)
IMPORT_C TBool | SetVersionTagL | ( | const TDesC & | aVersionTag | ) | |
Sets the document's XML version processing instruction.
-
leave
- KErrNoMemory Out of memory
Parameters
const TDesC & aVersionTag | The XML version processing instruction. This must begin with <?xml and end with >, for example <?xml version="1.0"?>. |
ValidElementNameL(const TDesC &)
IMPORT_C TBool | ValidElementNameL | ( | const TDesC & | aElement | ) | const |
Tests whether an element name is valid for the document.
-
leave
- KErrNoMemory Out of memory
Parameters
const TDesC & aElement | The element name to be tested |
VersionTag()
const TDesC & | VersionTag | ( | ) | const [inline] |
Gets the document's XML version processing instruction.
Member Data Documentation
HBufC * iDocTypeTag
HBufC * | iDocTypeTag | [protected] |
MXMLDtd * iDtdRepresentation
MXMLDtd * | iDtdRepresentation | [private] |
CMDXMLElement * iRootElement
HBufC * iVersionTag
HBufC * | iVersionTag | [protected] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.