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 205022 - NB is not using XML Schema added to the User Catalog
Summary: NB is not using XML Schema added to the User Catalog
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: Catalog Support (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-12 00:42 UTC by swpalmer
Modified: 2011-11-16 12:44 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 swpalmer 2011-11-12 00:42:16 UTC
Product Version = NetBeans IDE Dev (Build 201111080600)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_01
Runtime = Java HotSpot(TM) Client VM 21.1-b02

The system ID and schema file are configured properly.. added to the User Catalog, but NB isn't doing code completion in the XML editor and validation fails with errors:

Referenced entity at "file:/C:/Users/scott.palmer/the_path_for_the_xml_file/my_schema.xsd".
schema_reference.4: Failed to read schema document 'my_schema.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. [56] 
XML validation finished.


Note that it is trying to find the schema it the same folder as the XML file instead of using the System ID to find the one configured in the User Catalog.
Comment 1 Svata Dedic 2011-11-16 09:01:32 UTC
1/ make sure you do not use schemaLocation in your file; otherwise the schemaLocation information is used to reach your schema

2/ check that you specified the System ID (not public ID) when adding the schema to the catalog (see the instructions at the bottom of the Add dialog itself).

Please describe exact steps how you added the schema to the catalog.
Comment 2 swpalmer 2011-11-16 12:44:10 UTC
It was not either of those.  The Schema was properly added to the user catalog using the system ID, and the process had been working in earlier versions, however...
I can't reproduce it now with 201111140600, so I'll leave it resolved.