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.
build [200301090100]. Create any valid xml file. On Generate DTD Action exception thrown. On generate DTD exception throw. org.netbeans.tax.TreeException at org.netbeans.modules.xml.core.tree.TreeEditorCookieImpl.parseTree(TreeEditorCookieImpl.java:363) at org.netbeans.modules.xml.core.tree.TreeEditorCookieImpl.access$200(TreeEditorCookieImpl.java:49) at org.netbeans.modules.xml.core.tree.TreeEditorCookieImpl$1.run(TreeEditorCookieImpl.java:143) at org.openide.util.Task.run(Task.java:136) [catch] at java.lang.Thread.run(Thread.java:536)
Petr, could you attach zipped XML doc, please. I cannot reproduce.
I don't generate DTD from xml in NetBeans. I cannot reproduce the same bug. But I tried investigate and found other bugs. If xml document is not valid or URL in DOCTYPE doesn't exist :-) exception thrown. These exceptions need to annotate. See bellow: org.netbeans.tax.TreeException: The element type "aaa" must be terminated by the matching end-tag "</aaa>". at org.netbeans.tax.io.XNIBuilder.buildDocument(XNIBuilder.java:163) at org.netbeans.modules.xml.tax.parser.XMLParsingSupport.parse(XMLParsingSupport.java:40) at org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.parseTree(TreeEditorCookieImpl.java:341) at org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.access$200(TreeEditorCookieImpl.java:56) at org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl$1.run(TreeEditorCookieImpl.java:150) at org.openide.util.Task.run(Task.java:136) ---------- org.netbeans.tax.TreeException: no protocol: at org.netbeans.tax.io.XNIBuilder.buildDocument(XNIBuilder.java:171) at org.netbeans.modules.xml.tax.parser.XMLParsingSupport.parse(XMLParsingSupport.java:40) at org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.parseTree(TreeEditorCookieImpl.java:341) at org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl.access$200(TreeEditorCookieImpl.java:56) at org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl$1.run(TreeEditorCookieImpl.java:150) at org.openide.util.Task.run(Task.java:136)
Low level annotation added: Cannot load the document!
verified
*** Issue 34359 has been marked as a duplicate of this issue. ***