I've got two statements in my code that are both generating weird,
weird, weird messages:
The first one was,
Dim document As System.Xml.XmlDocument
Dim navigator As System.Xml.XPath.XPathNavigator
Dim transform As System.Xml.Xsl.XslTransform
..
..
..
navigator = document.CreateNavigator()
transform.Transform(navigator, Nothing, Response.OutputStream)
which generated the following fascinating compiler warning on the call
to Transform:
'Public Sub Transform(input As System.Xml.XPath.XPathNavigator, args As
System.Xml.Xsl.XsltArgumentList, output As System.IO.Stream)' is
obsolete: 'You should pass XmlResolver to Transform() method'
Really! Well, with that fascinating tidbit in mind, I changed the code
as follows:
transform.Transform(New System.Xml.XmlUrlResolver, Nothing,
Response.OutputStream)
And was promptly rewarded with this:
'Public Sub Transform(input As System.Xml.XPath.IXPathNavigable, args
As System.Xml.Xsl.XsltArgumentList, output As System.IO.Stream)' is
obsolete: 'You should pass XmlResolver to Transform() method'
The messages are virtually identical. So, the original code, which I am
trying to use to master XMLHTTP for use with .NET 1.1 (for a legacy
app) is apparently "naughty" because it uses obsolete code, and the
recommended code is naughty because it's obsolete as well.
Suggestions?
Now, if you'll excuse me, the ambulence has arrived. I have to go to
the hospital and have my forehead looked at. I think I have a
concussion from slamming my head on the desk.