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 72005

Summary: Improve generation of DTD from XML
Product: xml Reporter: Jiri Prox <jiriprox>
Component: ToolsAssignee: issues@xml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jiri Prox 2006-01-30 10:43:41 UTC
List of sub-elements in element declaration should be in the order the
sub-elements can be found in original file. Nowadays, it is in the oposite order.

Example:
DTD generated from this file:
<root>
    <a></a>
    <b></b>
    <c></c>    
</root>

should looks like:
...
<!ELEMENT root (a|b|c)*>
...

in current state I've got
...
<!ELEMENT root (c|b|a)*>
...
Comment 1 gliesian 2010-05-19 16:55:31 UTC
Looks like the feature is there, if you look at the note in this webpage (http://xml.netbeans.org/tools/index.html):

Here's the text:

How can I generate a DTD from a sample XML document?
    Open the document in the tree editor and select an element that should be the root of the DTD, then right click and select Generate DTD.


!!! I'm not sure if the module is currently supported though... but this feature should be made available from right-clicking the XML instance document node.

Thanks.