MIRA
XMLSerializerTag Struct Reference

Serializer for serializing objects in XML format. More...

#include <serialization/XMLSerializer.h>

Detailed Description

Serializer for serializing objects in XML format.

It uses the XMLDom class for storing the XML content.

Example usage:

#include <serialization/adapters/std/vector>
// the data to be serialized
std::vector<int> myValue;
...
// create a XMLSerializer that writes into an XML document
XMLDom myXmlDocument;
XMLSerializer serializer(myXmlDocument);
// serialize the data
serializer.serialize("myValue", myValue, "A comment describing the value");
// write the XML document to a file
myXmlDocument.saveToFile("myfile.xml");

For the deserialization of XML content see XMLDeserializer.

See also
Serialization

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