zeus::IXMLDocument Class Reference
#include <IXMLDocument.hpp>
List of all members.
Detailed Description
Das
IXMLParser Interface definiert einen XML Parser
Member Function Documentation
| virtual Retval MQUALIFIER zeus::IXMLDocument::getMainNode |
( |
IXMLNode *& |
rpMainNode |
) |
[pure virtual] |
Returns the main node of the xml dom tree
- Parameters:
-
| rpMainNode | : return parameter of the main node |
- Return values:
-
| RET_NOERROR | : main node returned. |
| RET_REQUEST_FAILED | : Could not return the main node |
| virtual Retval MQUALIFIER zeus::IXMLDocument::getStream |
( |
IString & |
rStream |
) |
const [pure virtual] |
Returns the DOM buffer as a stream.
- Parameters:
-
| stream | : return parameter of a stream of data |
- Return values:
-
| RET_NOERROR | : Stream returned |
| RET_REQUEST_FAILED | : Could return stream |
| virtual Retval MQUALIFIER zeus::IXMLDocument::save |
( |
|
) |
[pure virtual] |
Saves the document. This method will fail, if a stream has been loaded previously.
- Return values:
-
| RET_NOERROR | : File saved |
| RET_REQUEST_FAILED | : Could not save file |
| virtual Retval MQUALIFIER zeus::IXMLDocument::saveAs |
( |
const IString & |
rFilename, |
|
|
bool |
bKeepOrginalFileName = false | |
|
) |
| | [pure virtual] |
Saves the document using a new file name. This method will fail, if a stream has been loaded previously.
- Parameters:
-
| rFilename | : Name of the new file |
| bKeepOrginalFileName | : Keeps the original file name stored. This flag is needed to store a copy |
- Return values:
-
| RET_NOERROR | : File saved |
| RET_REQUEST_FAILED | : Could not save file |
| virtual Retval MQUALIFIER zeus::IXMLDocument::createNewNode |
( |
Uint |
uiNodeType, |
|
|
const IString & |
rName, |
|
|
const IString & |
rUri, |
|
|
IXMLNode *& |
rpNode | |
|
) |
| | [pure virtual] |
Creates a new xml DOM node. The node will be returned to the caller and can be inserted or added using the IXMLNode method insert() or append().
- Parameters:
-
| uiNodeType | : Type of the node (see defines) |
| rName | : Name of the node |
| rUri | : Ressource identifier (not used for all types -> see XML spec. of xercesc |
| rpNode | : return parameter of the created node. |
- Return values:
-
| RET_NOERROR | : Node created. |
| RET_REQUEST_FAILED | : Could not create the node |
| virtual Retval MQUALIFIER zeus::IXMLDocument::validate |
( |
IXMLErrorReporter * |
pReporter = NULL |
) |
[pure virtual] |
Validates the xml document. Te errors will be returned by the the error handler registered
- Parameters:
-
| pReporter | : reporter instance |
- Return values:
-
| RET_NOERROR | : XML is ok |
| RET_INVALID_DATA | : XML is not valid. |
| virtual Retval MQUALIFIER zeus::IXMLDocument::getNodeList |
( |
IXMLNodeList *& |
rpList |
) |
[pure virtual] |
Returns the complete node list of the xml dom tree
- Parameters:
-
| rpList | : return parameter of the list |
- Return values:
-
| RET_NOERROR | : list returned. |
| RET_REQUEST_FAILED | : Could not return the list |
| virtual void MQUALIFIER zeus::IXMLDocument::getFileName |
( |
IString & |
rFileName |
) |
const [pure virtual] |
Returns the file name of the XML document. If the file name is empty, the document was built out of a stream.
| virtual void MQUALIFIER zeus::IXMLDocument::useNamespace |
( |
const IString & |
rPrefix, |
|
|
const IString & |
rNameSpace | |
|
) |
| | [pure virtual] |
Sets the prefix for a specific name space. Use this method before querying data with X-Path.
- Parameters:
-
| rPrefix | : Prefix to use |
| rNameSpace | : Name space |
| virtual void MQUALIFIER zeus::IXMLDocument::removeNamespace |
( |
const IString & |
rPrefix |
) |
[pure virtual] |
Removes a specific name space.
- Parameters:
-
| rPrefix | : Prefix to remove. |
The documentation for this class was generated from the following file: