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.
Product Version = NetBeans IDE Dev (Build 201203280401) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.7.0_03 Runtime = Java HotSpot(TM) Client VM 22.1-b02 I had an xsd file from which I generated the dtd (using the wizard). Then I generated the DOM Tree scanner from the dtd (using the wizard) but passing a file thruogh the scanner doesn't work (no matching). See attachments for more details.
Created attachment 117694 [details] xsd file
Created attachment 117695 [details] Valid xml file to parse
Created attachment 117696 [details] dtd file
Created attachment 117697 [details] Generated scanner
Created attachment 117698 [details] Main method
Fixed in jet-main#401bdf3e8364
sorry :) wrong bug.
I think there was a slight misunderstanding. The "Generate DTD" executed on a XML document generates a DTD which the document conforms to - just guesses what the DTD could be according to the document structure. In your case, if you generated DTD out of XSD schema, you got actually a DTD for XML schemas. Then the generated scanner actually accepted the XSD syntax, not your XML documents (described by the original XML schemas). So far so good; but it's a valid and needed (P1) enhancement to generate DOM/SAX scanner out of XSD description.