An XML serializer and deserializer of objects.
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 | Description |
|---|---|
| ISupportErrorInfo (esriSystem) | Indicates whether a specific interface can return Automation error objects. |
| IXMLSerializer | Provides access to members that control the XML serialization and deserialization of objects. |
'*** Create XmlStream ***
Dim pXmlStream As IXMLStream
Set pXmlStream = New XmlStream
'*** Create XmlWriter ***
Dim pXmlWriter As IXMLWriter
Set pXmlWriter = New XMLWriter
'*** Hook the Stream to the writer ***
pXmlWriter.WriteTo pXmlStream
"*** Create XmlSerializer ***
Dim pXmlSerial As IXMLSerializer
Set pXmlSerial = New XMLSerializer
pXmlSerial.WriteObject pXmlWriter, pPropset, Nothing, "Record", ss, prec
'*** Save to stream to file ***
pXMLStream.SaveToFile "d:\temp\foo.xml"
IXMLReader Interface | IXMLWriter Interface | IXMLStream Interface