By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

Write file in xml-format

P: n/a
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.X ML",
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
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"ReidarT" <re****@eivon.no> schrieb
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:

[...]

Have a look at the XML documentation and on how to write an XML file.

for example.
http://msdn.microsoft.com/library/en...hxmlwriter.asp

Armin

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.