ArcObjects Library Reference (NetworkAnalyst)  

INAStreetDirectionsContainer.SaveAsXML Method

Saves the directions to a file in XML format.

[Visual Basic .NET]
Public Sub SaveAsXML ( _
    ByVal filename As String _
public void SaveAsXML (
    string filename
  BSTR filename


filename [in]   filename is a parameter of type BSTR

Product Availability

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


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