ZeusBase-Library
2.0.4
|
#include <IXMLDocument.hpp>
Public Member Functions | |
virtual Retval MQUALIFIER | getMainNode (IXMLNode *&rpMainNode)=0 |
virtual Retval MQUALIFIER | getStream (IString &rstrStream) const =0 |
virtual Retval MQUALIFIER | getStream2 (IOutputStream &rStream) const =0 |
virtual Retval MQUALIFIER | save (bool bDoAutoFormat=false)=0 |
virtual Retval MQUALIFIER | saveAs (const IString &rstrFilename, bool bKeepOrginalFileName=false, bool bDoAutoFormat=false)=0 |
virtual Retval MQUALIFIER | createNewNode (IXMLNode::ENodeType eNodeType, const IString &rstrName, const IString &rstrUri, IXMLNode *&rpNode)=0 |
virtual Retval MQUALIFIER | validate (IXMLErrorReporter *pReporter=NULL)=0 |
virtual Retval MQUALIFIER | getNodeList (IXMLNodeList *&rpList)=0 |
virtual void MQUALIFIER | getFileName (IString &rstrFileName) const =0 |
virtual void MQUALIFIER | setFileName (const IString &rstrFileName)=0 |
virtual void MQUALIFIER | useNamespace (const IString &rstrPrefix, const IString &rstrNameSpace)=0 |
virtual void MQUALIFIER | removeNamespace (const IString &rstrPrefix)=0 |
virtual Retval MQUALIFIER | getImplPtr (INativePointer &rImpl) const =0 |
Public Member Functions inherited from zeus::IZUnknown | |
virtual Retval MQUALIFIER | askForInterface (const InterfaceID &rInterfaceID, IZUnknown *&rpIface)=0 |
virtual void MQUALIFIER | addRef () const =0 |
virtual void MQUALIFIER | release () const =0 |
The interface defines a complete xml document (as DOM tree).
|
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().
eNodeType | Type of the node (see defines) |
rstrName | Name of the node |
rstrUri | Ressource identifier (not used for all types -> see XML spec. of xercesc and MSXML). |
rpNode | return parameter of the created node. |
RET_NOERROR | Node created. |
RET_REQUEST_FAILED | Could not create the node |
|
pure virtual |
Returns the file name of the XML document. If the file name is empty, the document was built out of a stream.
rstrFileName | Return parameter of file name |
|
pure virtual |
This method returns the implementation pointer of a concrete xml document. Do not use this method outside of the XML_Service module
rImpl | return parameter |
RET_NOERROR | API pointer returned |
RET_REQUEST_FAILED | no API pointer found |
|
pure virtual |
Returns the main node of the xml dom tree
rpMainNode | return parameter of the main node |
RET_NOERROR | main node returned. |
RET_REQUEST_FAILED | Could not return the main node |
|
pure virtual |
Returns the complete node list of the xml dom tree.
rpList | return parameter of the list |
RET_NOERROR | list returned. |
RET_REQUEST_FAILED | Could not return the list |
|
pure virtual |
Returns the DOM buffer as a stream.
rstrStream | return parameter of a stream of data |
RET_NOERROR | Stream returned |
RET_REQUEST_FAILED | Could return stream |
|
pure virtual |
Returns the DOM buffer as a output stream.
rStream | return parameter of a stream of data |
RET_NOERROR | Stream returned |
RET_REQUEST_FAILED | Could return stream |
|
pure virtual |
Removes a specific name space.
rstrPrefix | Prefix to use |
|
pure virtual |
Saves the document. This method will fail, if a stream has been loaded previously.
bDoAutoFormat | Enable auto format tags on saved file. |
RET_NOERROR | File saved |
RET_REQUEST_FAILED | Could not save file |
|
pure virtual |
Saves the document using a new file name. This method will fail, if a stream has been loaded previously.
rstrFilename | Name of the new file |
bKeepOrginalFileName | Keeps the original file name stored. This flag is needed to store a copy. |
bDoAutoFormat | Enable auto format tags on saved file. |
RET_NOERROR | File saved |
RET_REQUEST_FAILED | Could not save file |
|
pure virtual |
Set the file name of the XML document.
rstrFileName | [IN]: File name. |
|
pure virtual |
Sets the prefix for a specific name space. Use this method before querying data with X-Path.
rstrPrefix | Prefix to use |
rstrNameSpace | Name space |
|
pure virtual |
Validates the xml document. Te errors will be returned by the the error handler registered.
pReporter | Optional reporter instance |
RET_NOERROR | XML is ok |
RET_INVALID_DATA | XML is not valid. |