ArcGIS Pro 2.6 API Reference Guide
CreateFromXML Method
Example 

ArcGIS.Core.Geometry Namespace > CompositeHVDatumTransformation Class : CreateFromXML Method
Xml string defining the hv datum transformations
Creates a new CompositeHVDatumTransformation from the given xml.
Syntax
public static CompositeHVDatumTransformation CreateFromXML( 
   string xml
)
Public Shared Function CreateFromXML( _
   ByVal xml As String _
) As CompositeHVDatumTransformation

Parameters

xml
Xml string defining the hv datum transformations

Return Value

A new composite geographic transformation that contains one or more hv datum transformations as specified by the xml.
Exceptions
ExceptionDescription
The xml is null or empty.
The xml is invalid xml.
Example
HVDatumTransformation hv1 = HVDatumTransformation.Create(108034);
HVDatumTransformation hv2 = HVDatumTransformation.Create(108033, false);
List<HVDatumTransformation> hvs = new List<HVDatumTransformation>() { hv1, hv2 };

// create from enumeration
CompositeHVDatumTransformation compositehv = CompositeHVDatumTransformation.Create(hvs);
int count = compositehv.Count;      // count = 2

List<HVDatumTransformation> transforms = compositehv.Transformations as List<HVDatumTransformation>;
HVDatumTransformation tranform = transforms[0];
// transform.Wkid = 108034

// get inverse
CompositeHVDatumTransformation inverse_compositehv = compositehv.GetInverse() as CompositeHVDatumTransformation;

// create from xml
string xml = compositehv.ToXML();
CompositeHVDatumTransformation xml_compositehv = CompositeHVDatumTransformation.CreateFromXML(xml);

// create from json
string json = compositehv.ToJson();
CompositeHVDatumTransformation json_compositehv = DatumTransformation.CreateFromJson(json) as CompositeHVDatumTransformation;
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

CompositeHVDatumTransformation Class
CompositeHVDatumTransformation Members
ToXML Method