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 192589 - [70cat][xml] When creating an XSD file in the text editor, the XSD parser/validator should identify fields (like value) which will cause compilation failure.
Summary: [70cat][xml] When creating an XSD file in the text editor, the XSD parser/val...
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 07:32 UTC by esmithbss
Modified: 2011-11-11 20:32 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 esmithbss 2010-11-28 07:32:14 UTC
Product Version = NetBeans IDE Dev (Build 201011250001)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

When text-editing an XSD file, the system validates the structure of the file; however, the validator should also identify and flag fields which are duplicated by existing definitions.  One example is "value".  There are many others.

When these values are left in the XSD, the resulting JAXB code will fail to compile due to the duplicate definitions.
Comment 1 Svata Dedic 2011-11-11 20:32:30 UTC
The validator currently only checks validity against DTD and XML schema. Could you please explain in more detail the rules you want to check in addition ? What do you mean by 'existing definitions' ?