This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I noticed I get an exception while trying to use the W3C XHTML Strict DTDs with DTDParser while parsing the ENTITY declaration. It took me a while to see that the W3C .ent (eg. http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent) file has something like LT !ENTITY nbsp " " GT while the "default" DTDs you register in the layer have LT !ENTITY nbsp CDATA " " -- some comment -- GT This looks like a bug in the parser to me as it probably also restricts the usage of other DTDs that are not hand-tailored to match the CDATA convention. At least some warning message or verbose exception would be nice in this case as it took me a while to see that the official W3C DTDs were "wrong" and debugging the parse is no picnic. (using LT and GT as I don't know how the bugtracker handles HTML brackets).
Hi, thanks for the report, but I must say I don't understand what exactly is the problem. What exactly are you trying to do in the IDE? Do you have any steps to reproduce this issue? Thanks.
I try to use the DTDParser and parse the official DTDs from W3C, which fail. It seems in the official release the w3c DTDs have been (hand-)modified to please the parser. I'm basically trying to use the HTML Editor in a standalone application and I register my own DTDs. It seems the DTDParser has some issues with custom DTDs (at least the onese from W3C).
Already fixed. The DTD Parser in fact parses SGML DTDs (HTML3-4.1). Recently I fixed html support for xhtml so improved it slightly, it can parse XML DTDs now.