Write file in xml-format

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top