I tested the file file XML Spy and it is well formed. In fact this would indicate like the XSLT would not be loaded from the file or where it is located (String variable?) at all. Are you sure it is coming to the StringReader as expected? Note also that StringReader
internally uses UTF-16 encoding and I have seen it causing similar problems and sometime changing fileEncoding in in web.config has helped but that has been with scenarios when XML/XSLT is loaded from file. If you change it to load the XSLT from strting into
XmlDocument, does that do any difference? Like:
Dim objDoc As New XmlDocument()
objDoc.LoadXml(strXSLStyleSheet)
You can use XmlDocument in the transformation like XPathDocument (it is just bit slower) but try that does it change anything.
masjj
Member
25 Points
10 Posts
XSL Error: Root Element Is Missing
Aug 22, 2003 12:03 PM|LINK
joteke
All-Star
46284 Points
6896 Posts
ASPInsiders
MVP
Re: XSL Error: Root Element Is Missing
Aug 22, 2003 04:55 PM|LINK
Teemu Keiski
Finland, EU