Code Completion in XML Documents within NetBeans 7.4 and a XSD

In former times I used XML files in Netbeans with the codecompletion, but the files had DTD's.

Now I came back to edit XML files, but this time with XSD's.

The XML files look like this:

<repo xmlns="http://server.com/some/path" >

Now I can add a Mapping via the Menu path "Tools -> DTD and XML Schemas"

Under the entry of "User Catalog" I can add a new DTD/ or Schema, when it is selected.


After pressing the "Add Local..." you get the following dialog:


Under SystemID you set the link, which is set under xmlns and "Browse" under URI to the xsd.

After the OK, the completion doesn't work always, but a
restart helps ;-).