RobWorkProject  24.5.15-
Static Public Member Functions | List of all members
XercesDocumentWriter Class Reference

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...
 

Detailed Description

Utility class for writing a DOMDocument to file.

Member Function Documentation

◆ writeDocument() [1/3]

static void writeDocument ( xercesc::DOMDocument *  doc,
const std::string &  filename 
)
static

Writes the content of doc to file named filename.

This method throws an exception in case of errors.

Parameters
doc[in] DOMDocument to write
filename[in] Desired filename

◆ writeDocument() [2/3]

static void writeDocument ( xercesc::DOMDocument *  doc,
std::ostream &  out 
)
static

Writes the content of doc to std::ostream out.

This method throws an exception in case of errors.

Parameters
doc[in] DOMDocument to write
out[in] The output stream to write to

◆ writeDocument() [3/3]

static void writeDocument ( xercesc::DOMDocument *  doc,
xercesc::XMLFormatTarget *  formatTarget 
)
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.

Parameters
doc[in] DOMDocument to write
formatTarget[in] The target to write to

The documentation for this class was generated from the following file: