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


IXMLWriter.WriteXMLDeclaration Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (System)  

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