J 
		
								
				
				
			
		Jeff
Hey
..NET 2.0
In my code am I trying to access an xml file using streaming. My code
compile but I think there is some kind of error in my code...:
HttpWebRequest request = (HttpWebRequest) WebRequest.Create( <url to xml
file> );
request.Credentials = CredendtialCache.DefaultCredentials;
request.Accept = "text/xml";
HttpWebResponse response = (HttpWebResponse) request.GetResponse();
System.IO.Stream stream = response.GetResponseStream();
XmlDocument doc = new XmlDocument();
XmlReader reader = XmlReader.Create(stream);
doc.Load(reader); //<???
XmlElement element = doc.DocumentElement["helloworld"];
I'm thinking if it might be wrong to use Load (see <??? in code) as this is
a stream. maybe Load does not load the entire xml file...
any ideas
				
			..NET 2.0
In my code am I trying to access an xml file using streaming. My code
compile but I think there is some kind of error in my code...:
HttpWebRequest request = (HttpWebRequest) WebRequest.Create( <url to xml
file> );
request.Credentials = CredendtialCache.DefaultCredentials;
request.Accept = "text/xml";
HttpWebResponse response = (HttpWebResponse) request.GetResponse();
System.IO.Stream stream = response.GetResponseStream();
XmlDocument doc = new XmlDocument();
XmlReader reader = XmlReader.Create(stream);
doc.Load(reader); //<???
XmlElement element = doc.DocumentElement["helloworld"];
I'm thinking if it might be wrong to use Load (see <??? in code) as this is
a stream. maybe Load does not load the entire xml file...
any ideas
	
 does not find an element then