IXMLTypeMapper Interface

Provides access to members that convert to and from XML to native types.

Members

Name Description
Method FromBinary Converts a byte array to an XML byte array.
Method FromBoolean Converts a boolean to an XML boolean.
Method FromByte Converts a byte to an XML byte.
Method FromDate Converts a date to an XML date.
Method FromDouble Converts a double to an XML double.
Method FromFloat Converts a float to an XML float.
Method FromInteger Converts a long to an XML integer.
Method FromShort Converts a short to an XML short.
Method ToBinary Converts an XML byte array to a byte array.
Method ToBoolean Converts an XML boolean to a boolean.
Method ToByte Converts an XML byte to a byte.
Method ToDate Converts an XML date to a date.
Method ToDouble Converts an XML double to a double.
Method ToFloat Converts an XML float to a float.
Method ToInteger Converts an XML integer to a long.
Method ToObject Creates an object based on XML type information.
Method ToShort Converts an XML short to a short.

IXMLTypeMapper.FromBinary Method

Converts a byte array to an XML byte array.

Public Function FromBinary ( _
    ByRef Value As Byte[]& _
) As String
public string FromBinary (
    ref Byte[]& Value
);

IXMLTypeMapper.FromBoolean Method

Converts a boolean to an XML boolean.

Public Function FromBoolean ( _
    ByVal Value As Boolean _
) As String
public string FromBoolean (
    bool Value
);

IXMLTypeMapper.FromByte Method

Converts a byte to an XML byte.

Public Function FromByte ( _
    ByVal Value As Byte _
) As String
public string FromByte (
    byte Value
);

IXMLTypeMapper.FromDate Method

Converts a date to an XML date.

Public Function FromDate ( _
    ByVal Value As DateTime _
) As String
public string FromDate (
    DateTime Value
);

IXMLTypeMapper.FromDouble Method

Converts a double to an XML double.

Public Function FromDouble ( _
    ByVal Value As Double _
) As String
public string FromDouble (
    double Value
);

IXMLTypeMapper.FromFloat Method

Converts a float to an XML float.

Public Function FromFloat ( _
    ByVal Value As Single _
) As String
public string FromFloat (
    float Value
);

IXMLTypeMapper.FromInteger Method

Converts a long to an XML integer.

Public Function FromInteger ( _
    ByVal Value As Integer _
) As String
public string FromInteger (
    int Value
);

IXMLTypeMapper.FromShort Method

Converts a short to an XML short.

Public Function FromShort ( _
    ByVal Value As Short _
) As String
public string FromShort (
    short Value
);

IXMLTypeMapper.ToBinary Method

Converts an XML byte array to a byte array.

Public Function ToBinary ( _
    ByVal Text As String _
) As Byte[]
public Byte[] ToBinary (
    string Text
);

IXMLTypeMapper.ToBoolean Method

Converts an XML boolean to a boolean.

Public Function ToBoolean ( _
    ByVal Text As String _
) As Boolean
public bool ToBoolean (
    string Text
);

Remarks

For proper conversion the text string for boolean value must be all lowercase.For example,Dim pXMLTypeMapper as IXMLTypeMapperSet pXMLTypeMapper = new XMLTypeMapperDim strValue as StringDim boolValue as BooleanstrValue = "true"boolValue = pXMLTypeMapper.ToBoolean(strValue)

IXMLTypeMapper.ToByte Method

Converts an XML byte to a byte.

Public Function ToByte ( _
    ByVal Text As String _
) As Byte
public byte ToByte (
    string Text
);

IXMLTypeMapper.ToDate Method

Converts an XML date to a date.

Public Function ToDate ( _
    ByVal Text As String _
) As DateTime
public DateTime ToDate (
    string Text
);

IXMLTypeMapper.ToDouble Method

Converts an XML double to a double.

Public Function ToDouble ( _
    ByVal Text As String _
) As Double
public double ToDouble (
    string Text
);

IXMLTypeMapper.ToFloat Method

Converts an XML float to a float.

Public Function ToFloat ( _
    ByVal Text As String _
) As Single
public float ToFloat (
    string Text
);

IXMLTypeMapper.ToInteger Method

Converts an XML integer to a long.

Public Function ToInteger ( _
    ByVal Text As String _
) As Integer
public int ToInteger (
    string Text
);

IXMLTypeMapper.ToObject Method

Creates an object based on XML type information.

Public Function ToObject ( _
    ByVal NamespaceURI As String, _
    ByVal TypeName As String _
) As Object
public object ToObject (
    string NamespaceURI,
    string TypeName
);

IXMLTypeMapper.ToShort Method

Converts an XML short to a short.

Public Function ToShort ( _
    ByVal Text As String _
) As Short
public short ToShort (
    string Text
);

Classes that implement IXMLTypeMapper

Classes Description
XMLTypeMapper A type converter for XML and native types.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close