issue with xml file download and processing

BlitzMax Forums/BlitzMax Programming/issue with xml file download and processing

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

hi!

i created a script that downloads via FTP an xml file, and then process it to convert its nodes into variable=value pairs.

both process work separately, but once i launch the whole process, then it fails: it seems the file is there, but is not available for xml processing. I come from serverside processing world, and i assume it's a file handle releasing issue but i'm not sure.

Can someone explain why?


Here is the bit from the console log that concerns the problem:

SYS: succesfully received file forecasts.xml

IN: 150 Opening BINARY mode data connection for forecasts.xml (437 bytes).

DBG: check is ok (150).

IN: 226 File send OK.

DBG: check is ok (226).

OUT: quit

IN: 221 Goodbye.

Document not parsed successfully.

forecasts.xml:1: parser error : Document is empty
forecasts.xml:1: parser error : Start tag expected, '<' not found



you can view the FTP code is here: http://rafb.net/p/dYoREl64.html