public interface IXmlSerializable
|
GetSchema | |
ReadXml | Converts an XML document into an object using the specified reader. |
WriteXml | Converts the serializable members of an object into an XML document. |
XmlSchema GetSchema(); |
void ReadXml( |
reader
void WriteXml( |
writer
Method | Example |
---|---|
Write an initial count in the XML-instance document. |
<count>5</count>
<item> ... </item>
|
Write an end marker in the XML-instance document. |
<item>
...</item>
<endItems/>
|
Write a single container. |
<items>
<item>... </item>
<item> ... </item>
</items>
|
To test, you should serialize two instances of the object back-to-back, then deserialize both instances.