[cxml-devel] parsing from a http stream (no EOF at the end)

rm at tuxteam.de rm at tuxteam.de
Mon Oct 3 14:33:55 UTC 2011


On Mon, Oct 03, 2011 at 04:14:09PM +0200, Attila Lendvai wrote:
> cxml:parse is stuck waiting for an EOF even after the last closing tag
> when parsing from a stream (in my case it's a http stream in a server
> entry point. the client waits for the server to react, the server
> waits for the EOF).
> 
> looking at the code i get the impression that it was never meant to be
> used like this, an EOF is pretty much mandatory.

Off course, since any valid xml parser needs to be told when to finish
parsing. 

> could someone comment on this? was cxml ever meant to support such
> use-case, just noone really needed it yet?

What use case exactly? When and how should the parser "stop"? (keep in
mind that the "last closing tag" does not neccessarily signal the end
of a well-formed xml document)


 Cheers, Ralf Mattes

 
> any plans for supporting this?
> 
> any hints are appreciated,
> 
> -- 
>  attila
> 
> Notice the erosion of your (digital) freedom, and do something about it!
> 
> PGP: 2FA1 A9DC 9C1E BA25 A59C  963F 5D5F 45C7 DFCD 0A39
> OTR XMPP: 8647EEAC EA30FEEF E1B55146 573E52EE 21B1FF06




More information about the cxml-devel mailing list