OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

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

Re: [xml-dev] Real time XML Parser



You could do this using almost any C or C++ XML parser.  For instance, using
expat (ftp://ftp.jclark.com/pub/xml/expat.zip), you fread into a buffer from
the stream hooked to the serial port on which the modem sits, and parse each
buffer, generating and handling SAX events.  You could use select(2) or
non-blocking i/o or an event-based framework (such as the ACE Reactor
www.cs.wustl.edu/~schmidt/ACE.html) to avoid polling the modem stream.

Jeff


----- Original Message -----
From: "Gordon Stewart" <gordon.stewart@net800.co.uk>
To: "xml-dev" <xml-dev@lists.xml.org>
Sent: Friday, October 05, 2001 7:54 AM
Subject: [xml-dev] Real time XML Parser


> Dear List
>
> Can anyone recommend a real time parser?  I have a very large XML document
> that I would like to send across a modem. I need to parse parts of the
> document as it is being received.  The parser needs to be able to talk to
> C++.