"Julia" <co********@012.net.il> wrote in message
news:eo**************@TK2MSFTNGP09.phx.gbl...
I am getting some obsolete warning when using
XslTransform
has any one have an example of loading XSL from memory
and run it on an XML generated by object serialization?
Thanks in advance
The obsolete warning has little to do with how you are loading the XSL, it
is instead which overload you are calling.
The set of XslTransform.Transform methods that do not take an XmlResolver
parameter have been obsoleted, for security reasons if I recall. You should
be able to pass null if you do not use the document command in your XSLT, or
you could pass either System.Xml.XmlSecureResolver or
System.Xml.XmlUrlResolver to the method.
Is there anything else you were having trouble with?