I have a class instance that I want to serialize, upload to SkyDrive, download from SkyDrive, and then deserialize. I have the serialization, uploading, and downloading working fine, but the deserialization gives me the following error:
There is an error in XML document (2, 2).
The generated...
I have the following code that serializes an object:
Dim stream As New MemoryStream()
Dim xml As New XmlSerializer(GetType(SyncData))
xml.Serialize(stream, New SyncData(CType(Application.Current, App).Recipients, CType(Application.Current, App).Gifts))
However, when I later attempt to check...
I have a class that I need to serialize using XmlSerializer. The class is declared as follows:
<DataContract()> Public Class Recipient
<DataMember()> Public Property ID() As Byte
<DataMember()> Public Property Name() As String
<IgnoreDataMember()> Public ReadOnly Property Gifts() As Gift()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.