[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xml-dev] Real time XML Parser
- From: Jeff Greif <jgreif@alumni.princeton.edu>
- To: Gordon Stewart <gordon.stewart@net800.co.uk>,xml-dev <xml-dev@lists.xml.org>
- Date: Fri, 05 Oct 2001 08:52:21 -0700
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++.