Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 190584 - For an added OASIS XML catalog system entries do not appear in DTD and XML schemas view
For an added OASIS XML catalog system entries do not appear in DTD and XML sc...
Product: xml
Classification: Unclassified
Component: Catalog Support
PC Windows XP
: P3 with 2 votes (vote)
Assigned To: Svata Dedic
Depends on:
  Show dependency treegraph
Reported: 2010-09-24 13:06 UTC by frcdw
Modified: 2015-09-17 13:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description frcdw 2010-09-24 13:06:14 UTC
Let's take the following OASIS catalog TestXMLCatalog.xml :
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

    <system systemId=""
            uri="file:/C:/schema.xsd" />


Add it to netbeans catalog with Tools> DTD and XML schemas then "add Catalog"
and selecting "Oasis catalog resolver" an browsing to the file above (TestXMLCatalog.xml).

As a result a new node appears as "Resolver at TestXMLCatalog.xml" but it has no child.

Add the following line to TestXMLCatalog.xml
<public publicId="Schema public Id"
            uri="file:/C:/schema.xsd" />

add anew the modified catalog, in the catalog view the node "Resolver at TestXMLCatalog.xml" has only one child : the one corresponding to the public entry.
Comment 1 Petr Jiricka 2011-01-11 16:22:29 UTC
Sounds like a bug - not sure if this ever worked. I don't think this is considered a primary IDE feature, lowering priority to P3. 

Just to confirm - what is the main reason for adding the catalog to the registry? To provide code completion based on the schema? That should normally work even without adding a catalog.
Comment 2 frcdw 2011-01-11 16:42:00 UTC
A catalog is very handy when you work with no internet access.
You can manage to avoid validating processes (e.g. in a build step of a build suite) to fail when facing network failures.
Please note that Netbeans off the self catalogs are not comprehensive.
Comment 3 Martin Balin 2015-09-17 13:17:00 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo