# FdoXmlSerializable Class Reference

`#include <Serializable.h>`

Inheritance diagram for FdoXmlSerializable:

[legend]

List of all members.

## Detailed Description

FdoXmlSerializable provides the ability to serialize an FDO object to an XML Document. Serialization support can be added to any class by basing it on FdoXmlSerializable and implementing the _writeXml callback.

Definition at line 28 of file Serializable.h.

## Public Member Functions
virtual FDO_API FdoXmlReader * | GetFromInternalStylesheet ()
| Gets the stylesheet for converting the XML document from internal to external format. When classes derived from FdoXmlSerializable define an internal format, they must override this function to return a stylesheet that does the conversion.
virtual FDO_API void | WriteXml (FdoIoStream *stream, FdoXmlFlags *flags=NULL)
| Writes to a stream. A complete XML document, containing this object, is written.
virtual FDO_API void | WriteXml (FdoIoTextWriter *textWriter, FdoXmlFlags *flags=NULL)
| Writes to a text writer. A complete XML document, containing this object, is written.
virtual FDO_API void | WriteXml (FdoXmlWriter *xmlWriter, FdoXmlFlags *flags=NULL)
| Writes to an XML writer. This object is appended to the XML document being written. Unlike the other WriteXml() functions it is not necessarily the only object in its document.
virtual FDO_API void | WriteXml (FdoString *fileName, FdoXmlFlags *flags=NULL)
| Writes this object to a file. A complete XML document, containing this object, is written.
## Protected Member Functions
virtual FDO_API void | _writeXml (FdoXmlWriter *xmlWriter, const FdoXmlFlags *flags)=0
| Callback for writing to XML. Derived classes must implement this function to serialize the class into XML element(s). The class must be written as one XML element (with 0 or more sub-elements).

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

- Serializable.h