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 132452 - bad XML generation for noNamespace schema.
Summary: bad XML generation for noNamespace schema.
Status: RESOLVED DUPLICATE of bug 139763
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-09 18:46 UTC by tonybeckham
Modified: 2008-08-12 20:30 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 tonybeckham 2008-04-09 18:46:10 UTC
Problem:
Schema with noNamespaceSchemaLocation attribute set are unable to have code completion in xml documents based on them.

System:
Product Version: NetBeans IDE Dev (Build 200804090901)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)

Steps:
1. Create a new schema
2. In schema view select the namespace and change its property to no namespace
3. Add a few elements to the schema
4. Generate sample XML from schema (root element is blank thats another issue to be filed)
5. there is no code completion available
Comment 1 Samaresh Panda 2008-04-09 23:57:23 UTC

*** This issue has been marked as a duplicate of 132420 ***
Comment 2 tonybeckham 2008-07-11 20:04:29 UTC
Not a duplicate of 132420.

Product Version: NetBeans IDE Dev (Build 200807101204)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)
Comment 3 Samaresh Panda 2008-07-11 23:26:22 UTC
I see what you're saying but the problem is in generation and you have filed issue 139763 on that. The generated code in
this case should look like:

<root xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
   xsi:noNamespaceSchemaLocation='newXmlSchema.xsd'>

</root>

where newXmlSchema.xsd is a schema with no namespace. Of course CC will not work here 'coz it can't find things needed
for CC. When the generation gets fixed, CC will work.

I've fixed the summary and now it'll be a dup of issue 139763.

*** This issue has been marked as a duplicate of 139763 ***
Comment 4 Roderico Cruz 2008-08-12 20:30:02 UTC
*** Issue 132454 has been marked as a duplicate of this issue. ***