Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XML Parse error: Invalid at the top level of the document. Line 1, Position 1

1,131 views
Skip to first unread message

Rotsj

unread,
Jun 16, 2007, 10:54:23 AM6/16/07
to
Hi,

i've tried using the function xmltocursor, i immeditately get the
error XML Parse error: Invalid at the top level of the document. Line
1, Position 1. As i didn't know what was wrong with the XML, i created
a new xml from a cursor using the cursortoxml function, worked fine,
tried the xmltocursor function on this new file and get the same
error.

What am i doing wrong?

Thanks!

Rotsj

Fred Taylor

unread,
Jun 16, 2007, 12:58:36 PM6/16/07
to
Try this (substitute your table as needed):

CURSORTOXML("sample","sample.xml",3,512)
XMLTOCURSOR("sample.xml","test",512)

The most common error is not specifying the 512 parameter which says the
input/output is to a file.
For example, if you leave off the 512 parameter,
XMLTOCURSOR("sample.xml","test") will generate the exact error you've seen.

--
Fred
Microsoft Visual FoxPro MVP


"Rotsj" <r.knip...@home.nl> wrote in message
news:1182005663.6...@q75g2000hsh.googlegroups.com...

0 new messages