ArcGIS Pro 3.7 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
    Sub SaveMetadataAsUsingCustomXSLT( _
       ByVal customXSLTFilePath As String, _
       ByVal outputFilePath As String _
    ) 
    void SaveMetadataAsUsingCustomXSLT( 
       string customXSLTFilePath,
       string outputFilePath
    )

    Parameters

    customXSLTFilePath
    outputFilePath

    Return Value

    void
    Example
    Item: Save the metadata of the current item using customized XSLT: SaveMetadataAsUsingCustomXSLT
    {
      // Note: Needs QueuedTask to run
      metadataItemToSaveAsUsingCustomXSLT.SaveMetadataAsUsingCustomXSLT(@"E:\Data\Metadata\CustomXSLT.xsl", @"E:\Temp\OutputXMLCustom.xml");
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also