views:

26

answers:

0

I recently started using NetBeans, and I can already see some advantages vs. Eclipse (like, for instance, NetBeans has a XUL plug-in for developing Firefox extensions; Eclipse doesn't). However, I've run in to an issue with the XML plug-in, specifically the auto-completion/validation by schema file part.

I've searched the web, and the only example I can find of how to use this feature is here: http://wiki.netbeans.org/SchemaAwareCodeCompletion

It gives the example of:

<po:purchaseOrder
  xmlns:po="http://xml.netbeans.org/schema/PO"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://xml.netbeans.org/schema/PO http://xml.netbeans.org/schema/PO.xsd"&gt;
      .....
</po:purchaseOrder>

That seems all well and good, so I tried:

<prefwindow id="appPreferences" onunload="OSM.Prefs.prefWindowUnloadHandler()"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul nbres:com/teesoft/foxbeans/foxfiles/xul.xsd">

because that nbres: URL is what NetBeans tells me the URI of the schema is (when I go to Tools=>DTDs and Schema). I've also tried not specifying a schemaLocation, or just specifying the keymaster/gatekeeper URL without a second URI; none of that works.

So, it seems like this should be really simple (like I shouldn't even need schemaLocation at all, or else should need a very obvious/simple one), but I'm stuck. Can any experienced NetBeans XML users out there help?