Re: [xml] End of document with push parser

On Tue, Aug 30, 2005 at 01:52:00PM +0200, Jérôme Marant wrote:

I'm writing a small server which receives requests from
a TCP stream in XML and I do use a push parser for
this (xmlParseChunk).

  The program who push the data must provide the information about the
end of the data to the parser. You cannot guess that from the parser state 
nor the XML data, that information must come from some context outside the
document. If you don't have that inforamtion availbale in your system you
are building it's a serious design flaw, basically it was designed without
understanding XML.


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]