Groups | Blog | Home
all groups > dotnet xml > april 2004 >

dotnet xml : Getting the xml from the Request object


markeboy
4/21/2004 5:01:02 PM
We are converting a JScript app to .Ne

Previously, on the servers we were using MSXML2.DomDocument.4.

and using the load method to retrieve the incoming XML from the CLIENT as follows

mydoc.load(Request)

Christoph Schittko [MVP]
4/21/2004 11:51:40 PM
What type is mydoc?

Is it a System.Xml.XmlDocument? In that case you have to pass a TextReader,
and XmlReader or a Stream class to the Load method.

If the Request is an ASP.NET Request, then you can try:

mydoc.Load( Request.InputStream )

because other than in "old" ASP in IIS 5, the Request object no longer
implements a stream interface.

--
HTH
Christoph Schittko [MVP]
Software Architect, .NET Mentor


[quoted text, click to view]
handling this in DOT NET?

AddThis Social Bookmark Button