I have this in a file:

PHP Code:
        internal XmlTextReader GetXmlReaderFromXPathDoc(XPathDocument xmldocstring TreeNodeXsltSrc)
        {
            
// Load TreeNodeXsltSrc into XslTransform
            
XslTransform xslTrans = new XslTransform();
            
Uri uri = new Uri(Page.Request.UrlTreeNodeXsltSrc);
            
xslTrans.Load(uri.AbsoluteUri);

            
// Do transform
            
MemoryStream stream = new MemoryStream();
            
xslTrans.Transform(((IXPathNavigable)xmldoc).CreateNavigator(), nullstream);
            
stream.Position 0;
            return new 
XmlTextReader(stream);
        } 
I didn't write this code, it's part of the IE web controls source, and I have to compile this. However, when I try to compile it, I get this:

'System.Xml.Xsl.XslTransform.Transform(System.Xml.XPath.XPathNavigator,
System.Xml.Xsl.XsltArgumentList, System.IO.Stream)' is obsolete: 'You
should pass XmlResolver to Transform() method'
I cannot figure out how to make this code conform to the 'newer' standards. Can anyone help?