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


INAStreetDirectionsContainer.SaveAsXML Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAStreetDirectionsContainer Interface > INAStreetDirectionsContainer.SaveAsXML Method
ArcGIS Developer Help

INAStreetDirectionsContainer.SaveAsXML Method

Saves the directions to a file in XML format.

[Visual Basic .NET]
Public Sub SaveAsXML ( _
    ByVal filename As String _
)
[C#]
public void SaveAsXML (
    string filename
);
[C++]
HRESULT SaveAsXML(
  BSTR filename
);
[C++]
Parameters
filename [in]

filename is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

SaveAsXML saves all of the directions into an XML file.

The output XML file containing directions can be converted into a properly formatted HTML file using the style sheets available in the ArcGIS installation folder. For example, the directions output in XML format can be converted into an HTML file or a Text file using the style sheet Dir2WebDocument.xsl or Dir2PlainText.xsl respectively (usually found at C:\Program Files\ArcGIS\NetworkAnalyst\Directions\Styles).

See Also

INAStreetDirectionsContainer Interface