XML from ResourceManager?

  • Thread starter Thread starter Carole MacDonald
  • Start date Start date
C

Carole MacDonald

I'm using XslTransform to create an HTML page. The XSL page has all
of the HTML formatting. The actual text for the page comes from
resource files that are language dependent. I was using
ResourceManager to load the correct resource file, but I need to pass
XML to the XslTransform class. Is there a way to pull out the XML
from a ResourceManager? Or is there a better way to pass the language
specific resource file to the XslTransform class?

Thanks,
Carole
 
Carole,
I'm using XslTransform to create an HTML page. The XSL page has all
of the HTML formatting. The actual text for the page comes from
resource files that are language dependent. I was using
ResourceManager to load the correct resource file, but I need to pass
XML to the XslTransform class. Is there a way to pull out the XML
from a ResourceManager? Or is there a better way to pass the language
specific resource file to the XslTransform class?

You can use Assembly.GetManifestResourceStream() to get a stream you can use
to create an XmlDocument or similar object.
 
Back
Top