Martin Pöpping wrote:
Hello,
is there a way to add a stylhesheet like:
<?xml-stylesheet type="text/css" href="styles.css" ?>
to an XmlDocument?
Add a processing instructions as follows:
XmlProcessingInstruction pi =
yourXmlDocumentInstance.CreateProcessingInstructio n("xml-stylesheet",
"type=\"text/css\" href=\"styles.css\"");
yourXmlDocumentInstance.InsertBefore(pi,
yourXmlDocumentInstance.DocumentElement);
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/