D
dk9
I've serialize an object like this:
Dim MyName As String = "testing" & vbNewLine & "serialization"
Dim Formatter As New Xml.Serialization.XmlSerializer(MyName)
Try
Dim fs As New FileStream(_FilePath, FileMode.Create)
Formatter.Serialize(fs, MyName)
fs.Close()
Catch ex As Exception
End Try
The created XML file is well writen, there's a line feed there.
But when I'm deserializing the object, the line just dissapears...
It returns "testingserialization"
Dim Formatter As New
Xml.Serialization.XmlSerializer(GetType(String))
Try
Dim fs As New FileStream(_FilePath, FileMode.Create)
Formatter.Serialize(fs, MyName)
fs.Close()
Catch ex As Exception
End Try
What's going on here?!??!?!
Dim MyName As String = "testing" & vbNewLine & "serialization"
Dim Formatter As New Xml.Serialization.XmlSerializer(MyName)
Try
Dim fs As New FileStream(_FilePath, FileMode.Create)
Formatter.Serialize(fs, MyName)
fs.Close()
Catch ex As Exception
End Try
The created XML file is well writen, there's a line feed there.
But when I'm deserializing the object, the line just dissapears...
It returns "testingserialization"
Dim Formatter As New
Xml.Serialization.XmlSerializer(GetType(String))
Try
Dim fs As New FileStream(_FilePath, FileMode.Create)
Formatter.Serialize(fs, MyName)
fs.Close()
Catch ex As Exception
End Try
What's going on here?!??!?!