[Gllug] pipes and C++

Richard Jones rich at annexia.org
Mon Sep 13 19:33:44 UTC 2010


On Mon, Sep 13, 2010 at 02:01:33PM +0100, Bruce Richardson wrote:
> On Mon, Sep 13, 2010 at 09:45:32AM +0100, Adrian McMenamin wrote:
> > > You should remedy that.)  Since you're
> > > working with XML, can't process B recognise when its input is finished
> > > because it's received an entire XML document?  Surely unambiguous
> > > communication is what XML is all about?
> > 
> > I am using the Xerces DOM praser - I could switch to an event based parser
> > such as SAX then I could but that would involve a pretty substantial
> > rewrite.
> > 
> 
> You don't need the callback parser; it's more efficient and can help
> you avoid running out of memory when parsing large documents but it
> shouldn't make any difference to the basic task.  There's nothing to
> stop you using a DOM parser to parse a sequence of documents.

This is apparently how he would do it using libxml2:

http://mail.gnome.org/archives/xml/2003-December/msg00163.html

Rich.

-- 
Richard Jones
Red Hat
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list