This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Classes > X > XMLWriter CoClass (ArcObjects .NET 10.5 SDK) |
An XML sequential document writer.
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. |
IXMLWriter | Provides access to members that control the sequential writing of XML. |
IXMLWriter2 | Provides access to members that control the sequential writing of XML. |
Use the XMLWriter coclass when you wish to provide access to members that control the sequential writing of XML. XMLStream needs to be hooked-up in order to write to the stream.
'*** Create XmlStream and XmlWriter ***
Dim pStream As IXMLStream
Set pStream=New XMLStream
Dim pWriter As IXMLWriter
Set pWriter=New XMLWriter
pWriter.WriteTo pStream
'*** Create XmlSerializer ***
Dim pSerializer As IXMLSerializer
Set pSerializer=New XMLSerializer
pSerializer.WriteObject pWriter, Nothing, Nothing, "", "", pPoint
See the IXMLReader interface for more on getting information about writing of objects.
IXMLStream Interface | IXMLWriter Interface | IXMLSerialize Interface | IXMLReader Interface