ArcGIS Pro 2.6 API Reference Guide
FromXML Method (MultipointBuilder)
Example 

ArcGIS.Core.Geometry Namespace > MultipointBuilder Class : FromXML Method
XML string representation of the Multipoint.
Creates a new instance of a Multipoint class from an XML string representation.
Syntax
public static Multipoint FromXML( 
   string XMLString
)
Public Shared Function FromXML( _
   ByVal XMLString As String _
) As Multipoint

Parameters

XMLString
XML string representation of the Multipoint.

Return Value

Exceptions
ExceptionDescription
The XMLString is empty or null.
XML is invalid or does not represent a Multipoint string.
Example
MapPoint minPoint = MapPointBuilder.CreateMapPoint(1, 1, 1, 1, 3);
MapPoint maxPoint = MapPointBuilder.CreateMapPoint(5, 5, 5);

// 
//  MapPoint
// 
string xml = minPoint.ToXML();
MapPoint minPointImport = MapPointBuilder.FromXML(xml);
// minPointImport = minPoint

//
// Envelope
//
Envelope envelopeWithID = EnvelopeBuilder.CreateEnvelope(minPoint, maxPoint);

// Envelopes don't have IDs
// envelopeWithID.HasID = false
// envelopeWithID.HasM = true
// envelopeWithID.HasZ = true

xml = envelopeWithID.ToXML();
Envelope envelopeImport = EnvelopeBuilder.FromXML(xml);

//
// Multipoint
//
List<MapPoint> list = new List<MapPoint>();
list.Add(minPoint);
list.Add(maxPoint);

Multipoint multiPoint = MultipointBuilder.CreateMultipoint(list);

xml = multiPoint.ToXML();
Multipoint multipointImport = MultipointBuilder.FromXML(xml);
// multipointImport.PointCount == 2
// multipointImport.HasID = true
// multipointImport.HasM = true
// multipointImport.HasZ= true
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

MultipointBuilder Class
MultipointBuilder Members