@@ -13,15 +13,20 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ @class OFString; +@class OFXMLElement; + +#define OF_SERIALIZATION_NS @"https://webkeks.org/objfw/serialization" /** * \brief A protocol for serializing objects. */ @protocol OFSerialization /** - * \brief Serializes the object into a string. + * \brief Serializes the object into an XML element. + * + * \return The object serialized into an XML element */ -- (OFString*)stringBySerializing; +- (OFXMLElement*)XMLElementBySerializing; @end