NetBeans: how to provide stand-alone XML schemas?

I would like to have code completion and XML validation that comes from NetBeans having access to the schemas specified in the XML documents. Unfortunately, I need to use NetBeans in an offline (completely disconnected from the Internet) location, which means that NetBeans cannot load the specified .xsd files. However, I have all the xsd files saved locally.

How can I make NetBeans know something like xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" should really display in C:/Schemas/beans/spring-beans-2.5.xsd ?

Edit: NetBeans 6.5 has some features to have an XML schema directory, but it is unclear how this works. I know that one of the options for OASIS format ... maybe this is the key

+7
xml netbeans xsd
source share
1 answer

I am doing the following in NetBeans 6.9 ...

  • Select "DTDs and XML Schemas" from the "Tools" menu.

    A dialog box will open.

  • Scroll to the left while the "Custom Directory [read-write] item is visible.

    Select this item.

  • Click the 'Add Local DTD or Schema ...' button

    Another dialog box opens to define the connection between the URL with a link to the local file.

+9
source share

All Articles