ArcFM Desktop Developer Guide
WriteToXml<T>(String,T,String) Method


Desired output file name without the extension
Optional. Full path to a stylesheet to apply to the xml. If no stylesheet is provided, the raw data will be written out.
Write XmlSerializable to an xml file, applying a stylesheet if one exists.
Syntax
'Declaration
 
Public Shared Function WriteToXml(Of T As IXmlSerializable)( _
   ByVal filename As String, _
   ByVal data As T, _
   Optional ByVal stylesheetPath As String _
) As String
'Usage
 
Dim filename As String
Dim data As T
Dim stylesheetPath As String
Dim value As String
 
value = PxExportUtilities.WriteToXml(Of T)(filename, data, stylesheetPath)
public static string WriteToXml<T>( 
   string filename,
   T data,
   string stylesheetPath
)
where T: IXmlSerializable

Parameters

filename
Desired output file name without the extension
data
stylesheetPath
Optional. Full path to a stylesheet to apply to the xml. If no stylesheet is provided, the raw data will be written out.

Type Parameters

T

Return Value

Path to xml file on success, null on failure.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

PxExportUtilities Class
PxExportUtilities Members

 

 


Send Comment