DataSet.ReadXML() and xml:stylesheet
From: Kai Thorsrud (replyToThreadInstead_at_devnull.com)
Date: 03/24/04
- Next message: Oleg Tkachenko [MVP]: "Re: DataSet.ReadXML() and xml:stylesheet"
- Previous message: Oleg Tkachenko [MVP]: "Re: XML output of UTF8 string."
- Next in thread: Oleg Tkachenko [MVP]: "Re: DataSet.ReadXML() and xml:stylesheet"
- Reply: Oleg Tkachenko [MVP]: "Re: DataSet.ReadXML() and xml:stylesheet"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 15:17:58 +0100
Hi!
I've developed an application that uses XML as its datastorage. The
resulting XML file are to be used in a webpage with a XSL Stylesheet.
However if i add a <?xml:stylesheet type="text/xsl" href="style.xsl"?> tag
in my XML document the ReadXML method throws an exception like this:
System.Xml.XmlException: 'xml:stylesheet' is an invalid name for processing
instructions. Line 2, position 3.
at System.Xml.XmlTextReader.ParseTag()
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()
at System.Data.DataSet.ReadXml(XmlReader reader, Boolean denyResolving)
at System.Data.DataSet.ReadXml(String fileName)
Is there a way to allow this tag in my XML document when using ReadXML ?
The problem is that i cannot afford having an application rendering a HTML
document whenever the XML file changes since there will be a lot of writes
to the XML file.
Also I really want to avoid installing a web server on this machine (due to
the physical networked location of the machine) so I cannot create an ASP
file that renders the html file whenever someone wants to look at the
document.
As a last resort i tried using Xinclude wich MSXML unfortunately does not
implement afaik.
Help would be greatly appreciated.
Best Regards
Kai Thorsrud
- Next message: Oleg Tkachenko [MVP]: "Re: DataSet.ReadXML() and xml:stylesheet"
- Previous message: Oleg Tkachenko [MVP]: "Re: XML output of UTF8 string."
- Next in thread: Oleg Tkachenko [MVP]: "Re: DataSet.ReadXML() and xml:stylesheet"
- Reply: Oleg Tkachenko [MVP]: "Re: DataSet.ReadXML() and xml:stylesheet"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|