You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Joe Futrelle <fu...@ncsa.uiuc.edu> on 2000/04/04 00:02:07 UTC

reading multiple top-level elements from persistent socket connection

Hello, 

Apologies if this has already been asked.  My application is based on
a stateful protocol whose messages are encoded in XML.  In other
words, multiple top-level XML elements are sent between the server and
client over a single connection.  I want to use Xerces-c's DOM parser
to read these elements.  I've written an InputSource based on our
socket library, but Xerces-c's DOM parser expects an end-of-file
before it will return the top-level element.  Can this parser be
extended to optionally return the top-level element immediately after
reading the end tag, or is this behavior inconsistent with DOM itself?

It appears that internal/XMLScanner would have to be modified to
include a flag for this behavior.

------------------------------------------------------------------------
Joe Futrelle                  | "You guffawed, but for Ethel." --
Team Leader, Emerge           | Malcolm St Helens 
Scientific Data Tech. / NCSA  | 
http://emerge.ncsa.uiuc.edu/  |