I've serialize an object like this:
Dim MyName As String = "testing" & vbNewLine & "serializat ion"
Dim Formatter As New Xml.Serializati on.XmlSerialize r(MyName)
Try
Dim fs As New FileStream(_Fil ePath, FileMode.Create )
Formatter.Seria lize(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 "testingseriali zation"
Dim Formatter As New
Xml.Serializati on.XmlSerialize r(GetType(Strin g))
Try
Dim fs As New FileStream(_Fil ePath, FileMode.Create )
Formatter.Seria lize(fs, MyName)
fs.Close()
Catch ex As Exception
End Try
What's going on here?!??!?!
Dim MyName As String = "testing" & vbNewLine & "serializat ion"
Dim Formatter As New Xml.Serializati on.XmlSerialize r(MyName)
Try
Dim fs As New FileStream(_Fil ePath, FileMode.Create )
Formatter.Seria lize(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 "testingseriali zation"
Dim Formatter As New
Xml.Serializati on.XmlSerialize r(GetType(Strin g))
Try
Dim fs As New FileStream(_Fil ePath, FileMode.Create )
Formatter.Seria lize(fs, MyName)
fs.Close()
Catch ex As Exception
End Try
What's going on here?!??!?!
Comment