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 144676

Summary: Save All required to use added elements.
Product: xml Reporter: Michael Nazarov <michaelnazarov>
Component: CodeAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Michael Nazarov 2008-08-21 07:38:32 UTC
Product Version: NetBeans IDE Dev (Build 200808210201)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Steps to reproduce:

1. Create java application.
2. Cretae two xml schemas with all defaults.
3. Add Element A into first schema and B into second. Both schemes marked as modified.
4. Create XML constrained document based on these two schemes and wizard will fail with warning message about absent
root element.
5. To make it work schemes should be saved before wizard.
Comment 1 Svata Dedic 2011-10-26 15:03:24 UTC
The EntityResolver would have to inspect whether an opened Document exists for the schema file & open that Document contents instead of just using URL of the fileobject.
Comment 2 Martin Balin 2016-07-07 09:56:26 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss