ArcGIS Pro 2.7 API Reference Guide
FromXml Method (CIMObject)

ArcGIS.Core.CIM Namespace > CIMObject Class : FromXml Method
Input XML string. The xml must have a valid xml document with valid 'xsi:type' and 'xmlns:typens'.
Deserializes xml string and returns the CIMObject after upgrading the input xml.
Syntax
public static CIMObject FromXml( 
   string inputXml
)
Public Shared Function FromXml( _
   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 10, Windows 8.1

See Also

Reference

CIMObject Class
CIMObject Members