Hi,
i made the serialization of a class and i get this result:
="1.0"="UTF-8"
-<AuditLogiciel Dates="0001-01-01T00:00:00" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><DateData>0001-01-01T00:00:00</DateData></AuditLogiciel>
Why de DateData is like this:
0001-01-01T00:00:00
Normally i need the date like this dd/mm/yy
And finally, i want to know why i have :
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Thanks
[EDIT] Copied code from comment
Imports System.Xml.Serialization
<serializable()>
Public Class DataAcquisition
Public Sub New()
End Sub
#Region "Déclaration"
Public DateData As Date
Public MesureCapteur As String
#End Region
#Region "Propiétés"
Public Property Dates() As Date
Get
Return DateData
End Get
Set(ByVal value As Date)
DateData = value
End Set
End Property
Public Property CapteurMesure() As String
Get
Return MesureCapteur
End Get
Set(ByVal value As String)
MesureCapteur = value
End Set
End Property
#End Region
#Region "Métodes"
#End Region
End Class
In the main i have:
Private Sub MainWindow_Closing(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
Dim xSerializer As XmlSerializer = New XmlSerializer(GetType(DataAcquisition))
Dim writer As TextWriter = New StreamWriter("nomFichierConfigXml.XML")
xSerializer.Serialize(writer, Config)
writer.Close()
End Sub
[/EDIT]