[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-xml-sig
Subject:    [XML-SIG] Parsing XML data from a stream where several XML elements follow?
From:       veillard () redhat ! com (Daniel Veillard)
Date:       2002-12-18 15:54:22
Message-ID: 20021218105422.M27910 () redhat ! com
[Download RAW message or body]

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/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic