By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Forcing an association between an XML file and a style sheet in code.

P: n/a
RD
I create an XML file using the Mydataset.writexml and that works fine but I
need to associate this XML with a Style sheet I have created and need to do
it automatically in my code.
I don't see any overloads in the writexml method that would allow me to do
that directly. ie make sure that the new xml file starts with the lines

<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml:stylesheet type="text/xsl" href="mystyle.xsl" ?>

instead of the line that gets put there by default.

Can anyone point me to some code samples that do this either while creating
the XML file or just after it has been created.

Thanks for your help,
Bob

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.