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 - Improve generation of DTD from XML
Summary: Improve generation of DTD from XML
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Tools (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 10:43 UTC by Jiri Prox
Modified: 2010-05-19 16:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.