This document is archived and information here might be outdated.  Recommended version.


XMLSerializer Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Classes > X > XMLSerializer Class
ArcGIS Developer Help

XMLSerializerClass Class

An XML serializer and deserializer of objects.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
ISupportErrorInfo
IXMLSerializer Provides access to members that control the XML serialization and deserialization of objects.

Remarks


XML Serialization is the process of converting an object's public properties and fields to a serial format (XML) for storage or transport. In other words, Serialization is a way of saving the state of an object into a Stream or buffer.

Use the XMLSerializer coclass when you wish to serialize and deserialize objects. The Serializer will call an instance of the private SerializeData and QI the objects for IXMLSerialize and call Serialize. Once the serialization is complete you ask the SerializeData to write the properties it holds using XMLWriter. Using XMLStream will allow you to save the objects. The Deserialization is the opposite process and uses XMLReader .

See the IXMLSerializer interface for more on getting information about serialization of objects.

See Also

IXMLWriter Interface | IXMLReader Interface | IXMLSerializer Interface | IXMLStream Interface