ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.CIM Namespace / XmlUtils Class / UpgradeAndDeserializeCIMObject Method
Input XML string. The xml must have a valid xml document with valid 'xsi:type' and 'xmlns:typens'.

In This Topic
    UpgradeAndDeserializeCIMObject Method
    In This Topic
    Deserializes xml string and returns the CIMObject after upgrading the input xml. This function can be used for reading existing XML strings, but subsequent serialization should be done in JSON.
    Syntax
    public static CIMObject UpgradeAndDeserializeCIMObject( 
       string inputXml
    )
    Public Shared Function UpgradeAndDeserializeCIMObject( _
       ByVal inputXml As String _
    ) As CIMObject

    Parameters

    inputXml
    Input XML string. The xml must have a valid xml document with valid 'xsi:type' and 'xmlns:typens'.

    Return Value

    CIMObject
    Exceptions
    ExceptionDescription
    The input xml cannot be null or empty.
    Missing 'xmlns:typens' attribute in input xml
    Input xml has 'xmlns:typens' attribute with incompatible major version. Major version should be less than are equal to the current version.
    Version has fewer than two components or more than four components."
    Version is null
    A major, minor, build, or revision component is less than zero.
    At least one component of version does not parse to an integer.
    At least one component of version represents a number greater than MaxValue.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also