This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control an in-memory XML stream.
Name | Description | |
---|---|---|
LoadFromBytes | Loads from a UTF-8 byte array. | |
LoadFromFile | Loads from a file path. | |
LoadFromString | Loads from a string. | |
Reset | Resets the stream to the beginning. | |
SaveToBytes | Saves to a UTF-8 byte array. | |
SaveToFile | Saves to a file path. | |
SaveToString | Saves to a string. |
Classes | Description |
---|---|
XMLStream | An in-memory XML stream. |
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.