473,320 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Write file in xml-format

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
1 984
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Xenia | last post by:
Hello! Is anyone can help me to figure out how to write some xml into huge xml file into speceific location??? Say, i have a file about 139 Mb and i need to write some data (xml) into it, but...
2
by: Simon Mayr | last post by:
Hi. I'm new to XML and have a big problem. I should write a program that can show any XML-File in a TreeView. Thats no problem. Furthermore I should be able to change any entry in the Treeview...
9
by: msuk | last post by:
All, I have a well form block of XML that is stored in a C# string type and I just simply want to display it in the browser using Response.Write but when I try this I get the following error: ...
9
by: ALI-R | last post by:
Hi,, I have two questions : 1) Is it mandatory that config file of a desktop application must be App.config 2) Is it possible to update config file in your code?? thanks for your help. ALI
2
by: David | last post by:
Hi, My asp.net application is writing a few xml files based on certain criteria. the application works like this. 1. read an xml template using LoadXML. 2. manipulate the xml and add certain...
3
by: Testguy | last post by:
Hi, I have been reading various messages in this group, and could not find an answer regarding what I am trying to do. At least, I could not find an easy answer. I am trying to figure out how...
2
by: Dean Slindee | last post by:
Before a delete on any table, I would like to write the contents of the soon-to-be-deleted row to that application's single "graveyard" table (alternate: or document as coded below). SQL...
6
by: Hans | last post by:
Hello, I want to put logging functionality in my application and i want to store this information in an XML file with date, string and integer values. How do i write just one record to the XML...
1
by: raj.sinha | last post by:
I have to "PUT" data to a Unicode file... a file that has the "FF FE" mark at the beginning of the file. How do i do that. What HTTP header do i need to send so that the data is stored in the...
4
by: darrel | last post by:
I'm backtracking to a problem I had a month or so ago. I need to write XML files quite a bit. I'm finding that the way I'm doing it doesn't write a new, clean XML file each time, but just dumps...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.