A double quotation problem in a Write # statement

  • Thread starter Thread starter Mota
  • Start date Start date
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.
 
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 #
 
Back
Top