Groups | Blog | Home
all groups > dotnet xml > october 2005 >

dotnet xml : XmlDocument with URL


Pascal Schmitt
10/14/2005 12:00:00 AM
Hello!

[quoted text, click to view]

What does that mean? Does it end somewhere in-between, or are just the
last bytes missing?
Maybe you should capture the downloading of the XML with ethereal or
Fiddler to see if it's a server problem.

Maybe it is just a writer-problem, did you try to Flush() it before
quitting the method?



--
David Arden Stevensonn
10/14/2005 1:29:29 AM

My goal is to load an xml document from a remote url, make some changes to
it, and then display it in a webpage. Say my codebehind looks like this

private void Page_Load(Object sender, EventArgs e) {

XmlTextWriter writer = new
XmlTextWriter(Response.OutputStream, Encoding.UTF8);

XmlDocument doc = new XmlDocument();
doc.Load(http://somexmlgeneratedhere.com?id=333);
//manipulate the doc here
doc.WriteTo(writer);
}

Im not getting the full document from the URL, I'm sure Im doing this wrong.
Can anyone point me in the right direction?

thanks in advance
Dave


AddThis Social Bookmark Button