Write Class Data to an XML File in VB.NET



Write Class Data to an XML File in VB.NET

'Assembly: System.Xml.dll

'Namespace: System.XML.Serialization
'Namespace: System.IO

Dim writer As New XMLSerializer(GetType(Class))
Dim file As New StreamWriter(filename)
writer.Serialize(file, dataInstance)
file.Close()

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.