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

XML error when creating file II

P: n/a
The former post was wrong, the lines where concatenated so here it goes
again.

I am wrriting to a file (XML-format) and using

FileOpen(1, "C:\vb\WebBrowser\WebBrowserControl\TESTFILE.X ML",
OpenMode.Output)
Write(1, "<?xml version=""1.0""?>")
....

The error occurs when creating the file. I can see that the
""-characters are causing the error, but they need to be there on line
Write...

When I am trying to open the TESTFILE.XML I get the following error:

Ugyldig på toppnivået av dokumentet. Feil under behandling av ressursen
file:///C:/VB/WebBrowser/WebBrowserControl/TESTFILE...

"<?xml version=""1.0""?>","<XMLTest>"
^

regards
reidarT
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Reidar,

Why using that archaic code and not the streamwriter. This makes helping
more difficult.

http://msdn.microsoft.com/library/de...classtopic.asp

writeline method

I hope this helps,

Cor
Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.