running XSL on XML generated by object serialization

  • Thread starter Thread starter Julia
  • Start date Start date
J

Julia

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
 
Julia said:
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?
 
Back
Top