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 18960 - bad generation of DTD file from a XML file
Summary: bad generation of DTD file from a XML file
Status: CLOSED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Tools (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-30 14:13 UTC by vbrabant
Modified: 2007-09-25 01:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vbrabant 2001-12-30 14:13:12 UTC
I have taken one of your todo.xml file (that contains just the following
lines
        <list module = "catalog">
        </list>
  and let's netbeans generate the DTD.
    here is the generated DTD
          <!ELEMENT list EMPTY>
          <!ATTLIST list
            module CDATA #IMPLIED
          >
   as you can see, the Element list is considered as EMPTY.

 if you ask to validate the XML file, system say it's not valid because list
is not empty.
The reason is that CR/LF is something for the parser and then the list is
not empty.
Is it a problem with the parser ?
Is it a mistake by generating the DTD ?
Comment 1 _ lkramolis 2002-01-07 11:29:43 UTC
It was bug in DTD generator. Fixed in release33 branch.
Comment 2 Martin Schovanek 2002-01-21 20:33:25 UTC
VERIFIED
Comment 3 Quality Engineering 2003-07-02 08:39:33 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.