开发者

Parsing DTD's using an XML editor

I am trying to learn XML by reading from W3schools. I am already at the DTD chapter but I would like to try the samples there.

Thru search here at SO, I found out regarding this free tool XML editor called Greg XML Editor

My problem is that when I tried to include the Document Type Declaration at the xml file. It is saying "Validation ERROR: 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."

I am trying to understand how DTD works but I can seem to test the concept using this tool. Any idea how to fix this and if there's another xml editor that is free that I can use to handle validation on DTD?

I havent gone thru the XSL/XSD part yet bu开发者_JAVA技巧t I am betting that there is a need for an editor or parser for that also.

Thanks.


That indicates that the author of the software has disabled DTD processing. I notice from the website that it mentions XSD validation but not DTD validation. I assume that you are in a Windows environment as it's a .NET application.

You could try using something like the Personal Edition of the XMLMind Editor. That definitely supports DTD validation. XMLMind Editor is java app so will definitely work in your environment and has the advantage of being free whilst XMLSpy is around $400 iirc.


Liquid XML Studo has a DTD Editor that provides syntax highlighting and validation the cheap version is about $99.

Parsing DTD's using an XML editor

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜