Thanks Oleg
xslTransform.Transform(xmlData, null, xmlWriter, null);
...does the job (as I don't need a resolver in this case)
"Oleg Tkachenko" <olegt@multiconn.com> wrote in message
news:OQ1kcf9PDHA.304@tk2msftngp13.phx.gbl...[color=blue]
> Anthony Bouch wrote:
>[color=green]
> > Can anyone tell me why I receive the following compiler warning after[/color][/color]
having[color=blue][color=green]
> > recently upgraded to VS.Net 2003 and .Net 1.1?
> >
> > Warning CS0618: 'System.Xml.Xsl(System.Xml.XPath.IXPathNavigable,
> > System.Xml.Xsl.XsltArgumentList, System.Xml.XmlWriter)' is obsolete:[/color][/color]
'You[color=blue][color=green]
> > should pass XmlResolver to Transform() method'[/color]
> Because Transform() method you are using is obsolete in 1.1.
>[color=green]
> > xslTransform.Transform(xmlData, null, xmlWriter);[/color]
> This is obsolete, see
>[/color]
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemxmlxslxsltransformclasstransformtopic7. asp[color=blue]
>
> You should use this method instead:
>[/color]
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemxmlxslxsltransformclasstransformtopic15 .asp[color=blue]
>
> --
> Oleg Tkachenko
>
http://www.tkachenko.com/blog
> Multiconn Technologies, Israel
>[/color]