My friend Wagner Santos, a NetBeans specialist, has contributed to diamond-powder project, with an open source schema generator plugin.
Not only does his plugin prevent developers from common mistakes, but also it speeds up the diamond-powder schema development.
In his blog, we find installation and usage instructions:
http://netfeijao.blogspot.com/2009/03/diamond-powder-for-netbeans.html
Thank you Wagner !