Interface IXMLStream

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

Provides access to members that control an in-memory XML stream.

[Guid("498A5F91-65D1-4A25-AD2B-462E7DF8B358")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IXMLStream

Remarks

The IXmlStream interface provides seven methods to use for serialization. The LoadFromString method loads data saved as a string from memory while LoadFromFile method loads data saved as a file e.g. file path\foo.xml.  The LoadFromBytes method loads data saved as from a UTF-8 byte array, while SaveToString method saves object as a string to memory. The SaveToFile method saves object stream as a file e.g. foo.xml. The SaveToBytes saves object stream as UTF-8 byte array, while Reset method resets the stream to the beginning.

Methods

LoadFromBytes(ref byte[])

Loads from a UTF-8 byte array.

void LoadFromBytes(ref byte[] bytes)

Parameters

bytes byte[]

LoadFromFile(string)

Loads from a file path.

void LoadFromFile(string filePath)

Parameters

filePath string

LoadFromString(string)

Loads from a string.

void LoadFromString(string XML)

Parameters

XML string

Reset()

Resets the stream to the beginning.

void Reset()

SaveToBytes()

Saves to a UTF-8 byte array.

byte[] SaveToBytes()

Returns

byte[]

SaveToFile(string)

Saves to a file path.

void SaveToFile(string filePath)

Parameters

filePath string

SaveToString()

Saves to a string.

string SaveToString()

Returns

string