ArcObjects Library Reference (System)  

IXMLStream Interface

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Method LoadFromBytes Loads from a UTF-8 byte array.
Method LoadFromFile Loads from a file path.
Method LoadFromString Loads from a string.
Method Reset Resets the stream to the beginning.
Method SaveToBytes Saves to a UTF-8 byte array.
Method SaveToFile Saves to a file path.
Method SaveToString Saves to a string.

CoClasses that implement IXMLStream

CoClasses and Classes Description
XMLStream An in-memory XML stream.

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.