Write file in xml-format

  • Thread starter Thread starter ReidarT
  • Start date Start date
R

ReidarT

I have a webform where I am sending emails with attachments.
The attachments are formfields.text and the file is saved as an xml-file.
The problem is when I am opening the xml-file I get the "" from the code in
the file
Here is my code:

FileOpen(1, "C:\vb\WebBrowser\WebBrowserControl\TESTFILE.XML",
OpenMode.Output)

WriteLine(1, "<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>")

WriteLine(1, "<XMLForsendelse>")

WriteLine(1, "<PasientFornavn>" & txtFornavn.Text & "</PasientFornavn>")

WriteLine(1, "<PasientEtternavn>" & txtEtternavn.Text &
"</PasientEtternavn>")

WriteLine(1, "</XMLForsendelse>")

FileClose(1)



regards

reidarT
 
Back
Top