Interface IXMLTypeMapper

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

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

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("A9A5DE92-E3C9-4940-B0F4-6D93CDF2602B")]
public interface IXMLTypeMapper

Methods

FromBinary(ref byte[])

Converts a byte array to an XML byte array.

string FromBinary(ref byte[] Value)

Parameters

Value byte[]

Returns

string

FromBoolean(bool)

Converts a boolean to an XML boolean.

string FromBoolean(bool Value)

Parameters

Value bool

Returns

string

FromByte(byte)

Converts a byte to an XML byte.

string FromByte(byte Value)

Parameters

Value byte

Returns

string

FromDate(DateTime)

Converts a date to an XML date.

string FromDate(DateTime Value)

Parameters

Value DateTime

Returns

string

FromDouble(double)

Converts a double to an XML double.

string FromDouble(double Value)

Parameters

Value double

Returns

string

FromFloat(float)

Converts a float to an XML float.

string FromFloat(float Value)

Parameters

Value float

Returns

string

FromInteger(int)

Converts a long to an XML integer.

string FromInteger(int Value)

Parameters

Value int

Returns

string

FromShort(short)

Converts a short to an XML short.

string FromShort(short Value)

Parameters

Value short

Returns

string

ToBinary(string)

Converts an XML byte array to a byte array.

byte[] ToBinary(string Text)

Parameters

Text string

Returns

byte[]

ToBoolean(string)

Converts an XML boolean to a boolean.

bool ToBoolean(string Text)

Parameters

Text string

Returns

bool

Remarks


For proper conversion the text string for boolean value must be all lowercase.

For example,

  Dim pXMLTypeMapper as IXMLTypeMapper
  Set pXMLTypeMapper = new XMLTypeMapper 

  Dim strValue as String
  Dim boolValue as Boolean 

  strValue = "true"
  boolValue = pXMLTypeMapper.ToBoolean(strValue) 











ToByte(string)

Converts an XML byte to a byte.

byte ToByte(string Text)

Parameters

Text string

Returns

byte

ToDate(string)

Converts an XML date to a date.

DateTime ToDate(string Text)

Parameters

Text string

Returns

DateTime

ToDouble(string)

Converts an XML double to a double.

double ToDouble(string Text)

Parameters

Text string

Returns

double

ToFloat(string)

Converts an XML float to a float.

float ToFloat(string Text)

Parameters

Text string

Returns

float

ToInteger(string)

Converts an XML integer to a long.

int ToInteger(string Text)

Parameters

Text string

Returns

int

ToObject(string, string)

Creates an object based on XML type information.

object ToObject(string NamespaceURI, string TypeName)

Parameters

NamespaceURI string
TypeName string

Returns

object

ToShort(string)

Converts an XML short to a short.

short ToShort(string Text)

Parameters

Text string

Returns

short