- Main Page
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# Mers::Utils::Io::Xml::Dom::XMLSaver Class Reference

`#include <XMLSaver.h>`

List of all members.

## Static Public Member Functions
static int | save (const char *fileName, XERCES_CPP_NAMESPACE::DOMDocument *document)

## Detailed Description

This class implements a saver capable of saving a DOMDocument to a file. This code handles logging any exceptions thrown and general setup and cleanup needed for using Xerces's DOM writer.

Definition at line 35 of file XMLSaver.h.

## Member Function Documentation

static int Mers::Utils::Io::Xml::Dom::XMLSaver::save | ( | const char * | fileName,
|  | XERCES_CPP_NAMESPACE::DOMDocument * | document |
| ) |  |  | `[static]`

Writes an XML document to the specified file name.

Parameters:

  | fileName | The name of the file to save.
  | document | The document that should be saved.

Returns:
  0 on success or a positive value if the file could not be written.

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

- /Users/fpy/titan-1-5-MBARI/Mers/Utils/Io/Xml/Dom/XMLSaver.h
- /Users/fpy/titan-1-5-MBARI/Mers/Utils/Io/Xml/Dom/XMLSaver.cpp