ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Core Namespace / IMetadata Interface / SaveMetadataAsUsingCustomXSLT Method
Example

In This Topic
    SaveMetadataAsUsingCustomXSLT Method (IMetadata)
    In This Topic
    Save the metadata of the current item using customized XSLT
    Syntax
    void SaveMetadataAsUsingCustomXSLT( 
       string customXSLTFilePath,
       string outputFilePath
    )
    Sub SaveMetadataAsUsingCustomXSLT( _
       ByVal customXSLTFilePath As String, _
       ByVal outputFilePath As String _
    ) 

    Parameters

    customXSLTFilePath
    outputFilePath

    Return Value

    void
    Example
    Item: Save the metadata of the current item using customized XSLT: SaveMetadataAsUsingCustomXSLT
    await QueuedTask.Run(() => metadataItemToSaveAsUsingCustomXSLT.SaveMetadataAsUsingCustomXSLT(@"E:\Data\Metadata\CustomXSLT.xsl", @"E:\Temp\OutputXMLCustom.xml"));
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also