[XML-SIG] Parsing XML data from a stream where several XML elements follow?
Daniel Veillard
veillard@redhat.com
Wed, 18 Dec 2002 10:54:22 -0500
On Wed, Dec 18, 2002 at 06:47:49AM -0700, Uche Ogbuji wrote:
> > On Tue, Nov 26, 2002 at 04:25:38PM +0100,
> > Stephane Bortzmeyer <bortzmeyer@nic.fr> wrote
> The real solution is really to hack the code that does the buffered reads so
> that it returns as soon as it has exhausted the current octets on the channel
> and perhaps to change the parser so that it determines itself when it's done
> rather than having the calling code inform it. This is no trivial solution
> :-(
The XmlTextReader from C# have a specific call ResetState() specifically
for case (IMHO broken but apparently some specification are defining this)
where multiple instances are packed onto a single stream. Only the user
level can know that the parsing is at its end (i.e. there is no (more) Misc*
following the root document tag) and has to instruct the parser of this.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/