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.

Bug 202788

Summary: New File Type Wizard doesn't support new MIME type by XML Root Name
Product: apisupport Reporter: jasondrums
Component: TemplatesAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: normal Keywords: USABILITY
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description jasondrums 2011-09-28 16:55:10 UTC
When working with a Netbeans Module I was attempting to create a new file type DataObject that would recognize the file based on the XML root name. However, the wizard currently only supports recognition based on XML namespace. Thankfully, the DTD for the MIME resolver supports recognition based on name so a simple workaround is to modify the autogenerated resolver.xml file and change the following line:
<element ns="nameToFind"/>
as shown below:
<element name="nameToFind"/>
Comment 1 Jesse Glick 2011-11-10 20:43:55 UTC

*** This bug has been marked as a duplicate of bug 62176 ***