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 157819

Summary: Creating File Type in NB Module does not expose full QName
Product: apisupport Reporter: kitfox <kitfox>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description kitfox 2009-02-03 06:12:45 UTC
When using the File Type wizard within a NB Module project, the first step provides the option of identifying your file
by an XML namespace.  It does not allow you to additionally choose the name of the root element in the document (that
is, you cannot specify a qualified name).  However, since NB does appear to accept fully qualified names in the MIME
resolver:

<!DOCTYPE MIME-resolver PUBLIC "-//NetBeans//DTD MIME Resolver 1.0//EN"
"http://www.netbeans.org/dtds/mime-resolver-1_0.dtd">
<MIME-resolver>
    <file>
        <ext name="xml"/>
        <resolver mime="text/ts+xml">
            <xml-rule>
                <element name="myRoot" ns="http://xml.kitfox.com/schema/tw/ts"/>
            </xml-rule>
        </resolver>
    </file>
</MIME-resolver>

It would be useful if the ability to specify a root element name could be exposed in the File Type wizard.
Comment 1 Jesse Glick 2011-11-10 20:43:49 UTC

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