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.
1. Create newPurchaseOrder schema. 2. Create XML document constrained by this schema, select purchaseOrder as the root element and accept all other defaults. Result: an empty file is generated (only header exists). For newLoanApplication schema, content is generated.
I have tested this with various schemas but have not got into an empty document. Misha, is this consistent in all platforms? Where did you see this issue and what JDK are you using?
I checked build 200801220251 on WinXP, Linux and Solaris and got same results in each case. JDK 1.6.0_02 and 1.6.0-b105 Below is content of generated file. <?xml version="1.0" encoding="UTF-8"?> <!-- Document : newXMLDocument2.xml Created on : 23 January 2008, 16:46 Author : Misha Description: Purpose of the document follows. --> <ns11:comment xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns11='http://xml.netbeans.org/examples/PurchaseOrder' xsi:schemaLocation='http://xml.netbeans.org/examples/PurchaseOrder newPurchaseOrder.xsd'> </ns11:comment>
Reproduced with same results n Mac. Product Version: NetBeans IDE Dev (Build 200801220251) Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119 System: Mac OS X version 10.5.1 running on i386; MacRoman; en_US (nb)
Looks like the wizard picks comment as the root element, even tho user selects po as the root element. There is no issue with the generation part as such.
Fix integrated. /cvs/xml/src/org/netbeans/modules/xml/wizard/XMLContentPanel.java,v <-- XMLContentPanel.java new revision: 1.5; previous revision: 1.4
Still reproducible (WinXP) both for the last trunk build and the last M1 build.
Sorry, I was wrong. It's fixed in trunk, and not fixed for M1 branch. If this is OK, please mark the issue as fixed.
Please double check before reopening. The issue was filed after M1 freeze (01/21), so the fix can't possibly be in M1. Please verify with some new build.
Fix Verified, selecting purchaseOrder as root element works. Product Version: NetBeans IDE Dev (Build 200802080008) Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19 System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)