A double quotation problem in a Write # statement

M

Mota

Hi;
I want to read data from a table and write it into a XML file.For some
reasons i cant use wizard to convert table to XML.So I opened a file and
tried to write something (i.e. xml tags) in it as follow:

Open "C:\Test.xml" for output as #1
Write #1 "<Message>Hi</Message>"
Close #1

Noe,my problem is that the quoation marks are put together with the
statement <Message....,so Internet Explorer can not proccess this file and
causes an error in reading file.How to write something in a file without
surronding quotation marks?
Thank you in advance for ur help.
 
M

Marshall Barton

Mota said:
Hi;
I want to read data from a table and write it into a XML file.For some
reasons i cant use wizard to convert table to XML.So I opened a file and
tried to write something (i.e. xml tags) in it as follow:

Open "C:\Test.xml" for output as #1
Write #1 "<Message>Hi</Message>"
Close #1

Noe,my problem is that the quoation marks are put together with the
statement <Message....,so Internet Explorer can not proccess this file and
causes an error in reading file.How to write something in a file without
surronding quotation marks?


You probably want to use the Print # statement instead of
Write #
 

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