![]() |
RobWorkProject
23.9.11-
|
Utility class for writing a DOMDocument to file. More...
#include <XercesUtils.hpp>
Static Public Member Functions | |
| static xercesc::DOMDocument * | createDocument (const XMLCh *rootName) |
| static void | writeDocument (xercesc::DOMDocument *doc, const std::string &filename) |
| Writes the content of doc to file named filename. More... | |
| static void | writeDocument (xercesc::DOMDocument *doc, std::ostream &out) |
| Writes the content of doc to std::ostream out. More... | |
| static void | writeDocument (xercesc::DOMDocument *doc, xercesc::XMLFormatTarget *formatTarget) |
| Writes the content of doc to formatTarget. More... | |
Utility class for writing a DOMDocument to file.
|
static |
Writes the content of doc to file named filename.
This method throws an exception in case of errors.
| doc | [in] DOMDocument to write |
| filename | [in] Desired filename |
|
static |
Writes the content of doc to std::ostream out.
This method throws an exception in case of errors.
| doc | [in] DOMDocument to write |
| out | [in] The output stream to write to |
|
static |
Writes the content of doc to formatTarget.
This method can be used to write to a custom output. See Xerces documentation for information about how to create a XMLFormatTarget
This method throws an exception in case of errors.
| doc | [in] DOMDocument to write |
| formatTarget | [in] The target to write to |