Re: [Mono-list] parsing an incomplete xml

2004-07-19 Thread Krisztian PIFKO
On Sun, 2004-07-18 at 20:34 -0700, Scott Boston wrote: How are you feeding the incomplete xml into the XmlTextReader? i have a StringBuilder buffering the input, and i try to create the XmlTextReader using a StringReader created from StringBuilder's ToString(). You can create a NetworkStream

Re: [Mono-list] parsing an incomplete xml

2004-07-19 Thread Krisztian PIFKO
On Mon, 2004-07-19 at 01:46 -0400, Chris Bruner wrote: I believe that the xml spec says that parsing should stop as soon as an error occurs. (This includes begin incomplete). yes i fear this is the correct approach for all of the parsers. Therefore the only way you could fix it would be to

Re: [Mono-list] parsing an incomplete xml

2004-07-19 Thread Scott Boston
On Mon, 2004-07-19 at 01:46, Krisztian PIFKO wrote: On Sun, 2004-07-18 at 20:34 -0700, Scott Boston wrote: How are you feeding the incomplete xml into the XmlTextReader? i have a StringBuilder buffering the input, and i try to create the XmlTextReader using a StringReader created from

Re: [Mono-list] parsing an incomplete xml

2004-07-19 Thread Jonathan Stowe
On Mon, 2004-07-19 at 03:36, Krisztian PIFKO wrote: On Sun, 2004-07-18 at 21:21 -0400, Stephen Caldwell wrote: Well if you have some way of knowing how big the stream is, then maybe buffer it all and then parse it, or you might have to create a parsing class which can better handle

[Mono-list] parsing an incomplete xml

2004-07-18 Thread Krisztian PIFKO
hi, should someone please tell me how to parse an incomplete xml? i'm reading the xml asynchronously from a socket and i need to parse it continously as it arrives. when i feed the incomplete xml into XmlTextReader it hangs at the first unclosed element. thanks in advance, Krisztian PIFKO

Re: [Mono-list] parsing an incomplete xml

2004-07-18 Thread Krisztian PIFKO
On Sun, 2004-07-18 at 21:21 -0400, Stephen Caldwell wrote: Well if you have some way of knowing how big the stream is, then maybe buffer it all and then parse it, or you might have to create a parsing class which can better handle mal-formed xml documents. sad, but i need to parse it as it

Re: [Mono-list] parsing an incomplete xml

2004-07-18 Thread Scott Boston
How are you feeding the incomplete xml into the XmlTextReader? You can create a NetworkStream from your Socket and use that to create your XmlTextReader instance. Then you just do a continuous Read() loop, until EOF. On Sun, 2004-07-18 at 16:56, Krisztian PIFKO wrote: hi, should someone