[Mono-devel-list] XmlTextReader on network stream and on-the-fly xml parsing
    Bram Vandoren 
    lijstjes at bram.be
       
    Thu Jul 15 15:37:23 EDT 2004
    
    
  
Hi list,
I am trying to read an xml document from a network stream
//I open the network connection:
client = new TcpClient("localhost", port);
//and attach a xmltextreader to it:
XmlTextReader reader = new XmlTextReader(client.GetStream());
//After that I start reading it in a loop:
while (reader.Read()) {
    Console.WriteLine("we received fresh xml");
}
The code works find but it doesn't work 'on the fly'. It only starts 
parsing the xml code after I close the network connection. I don't know 
if this is the default behaviour or a bug in mono.
Any ideas to do the xml parsing on the fly ?
Thanks,
Bram.
    
    
More information about the Mono-devel-list
mailing list