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


IXMLWriter.WriteXMLDeclaration Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IX > IXMLWriter Interface > IXMLWriter.WriteXMLDeclaration Method
ArcGIS Developer Help

IXMLWriter.WriteXMLDeclaration Method

Writes the XML document declaration.

[Visual Basic .NET]
Public Sub WriteXMLDeclaration ( _
)
[C#]
public void WriteXMLDeclaration (
);
[C++]
HRESULT WriteXMLDeclaration(
void
);

Product Availability

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

Remarks


The WriteXMLDeclaration writes

<?xml version="1.0" encoding="utf-8" ?>

to Stream object. XML Declaration should always be included, as it defines the XML version and the encoding of the document.

See Also

IXMLWriter Interface