The good thing (but you will hate it, when you run into it) is that when deploying the plugin, its descriptor will be validated against the defining XML Schema - and errors will reported.
Of course, you could just have a look at the structural diagram of the second part of my plugin development postings, but this doesn't really make the task of writing XML easier.
The elements of the plugin descriptor are encoded in two XML Schema files in the source code:
- urn:xmlns:rhq-plugin :
- urn:xmlns:rhq-configuration :
Which means for you, that you can use the Schema files too for validation in your IDE. The following sections show how this is done; as my base install path of the RHQ project is in /jon/jonHEAD, this path will be prepended in the examples.
Go to Preferences->Web and XML->XML Catalog.
Go to Setup->Resources and enter the urn and the path. So it might look like this:
Go to Tools->DTDs and XML Schemas. Then select the User Catalog and click on Add Local DTD or Schema. This might look as follows: