AosIO from a connection and eof
Hi, It seems like I have a problem. In WebDAV I have to parse XML which is coming from a reader on a connection. Now the XMP parser is parsing until eof. But the connection doesn't provide an eof. So what ? Would closing the connection provide a eof ? The parser hangs. I modified the parser that it exits after it got the whole <tag> ... </tag> but obviously that's no solution :-( Cheers, Edgar -- edgar@edgarschwarz.de, Running Bluebottle www.edgarschwarz.de Make it as simple as possible, but not simpler ! Albert Einstein www.edgar-schwarz.de/cgi-bin/moin/ www.edgar-schwarz.de/cgi-bin/moin/SwOberon
It seems like I have a problem. In WebDAV I have to parse XML which is coming from a reader on a connection. Now the XMP parser is parsing until eof. But the connection doesn't provide an eof. So what ? Would closing the connection provide a eof ? Closing the Connection will give you an eof. Also the last chunk in chunked encoding in HTTP will set eof.
The parser hangs. I modified the parser that it exits after it got the whole <tag> ... </tag> but obviously that's no solution :-( This is unfortunatley not a solution because XML has many irregularities (i.E. instructions that can be outside the "scope" of the main element).
--Thomas
Hi Edgar An alternativ is to send 0X over the connection, which produces an eof. regards Josef edgar@edgarschwarz.de wrote:
Hi, It seems like I have a problem. In WebDAV I have to parse XML which is coming from a reader on a connection. Now the XMP parser is parsing until eof. But the connection doesn't provide an eof. So what ? Would closing the connection provide a eof ? The parser hangs. I modified the parser that it exits after it got the whole <tag> ... </tag> but obviously that's no solution :-(
Cheers, Edgar
-- Company: Radiar, Dr. J. Sedlacek, CH-7554 Sent Tel: +41 (81) 860 06 60 Fax: +41 (81) 860 06 62
participants (3)
-
edgar@edgarschwarz.de -
Josef Sedlacek -
Thomas Frey