all groups > dotnet xml > february 2006 >
You're in the

dotnet xml

group:

DTDs and xsl transforming


DTDs and xsl transforming Jon
2/3/2006 8:30:32 AM
dotnet xml: I am getting the following message when I try to transform an xml file that
specifies a DTD. I know how to allow DTDs when using an xmlreader, but not
when using the xsl transform. Can someone enlighten me, please.

System.Xml.XmlException was unhandled
Message="For security reasons DTD is prohibited in this XML document. To
enable DTD processing set the ProhibitDtd property on XmlReaderSettings to
false and pass the settings into XmlReader.Create method."

'Now transform it with xsl
'Load the style sheet.
Dim xslt As New XslCompiledTransform()
xslt.Load("vendor.xslt")

' Execute the transform and output the results to a file.
xslt.Transform("vendor.xml", "vendor.html")

Thanks
Jon

Re: DTDs and xsl transforming Jon
2/3/2006 8:42:18 AM
Nevermind, I see it now. Temporary brain meltdown.


[quoted text, click to view]

AddThis Social Bookmark Button