This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAStreetDirectionsContainer Interface > INAStreetDirectionsContainer.SaveAsXML Method (ArcObjects .NET 10.4 SDK) |
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
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).