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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top