Warning: A class name generation conflict has occured between element '/effect{http://nifty-gui.sourceforge.net/nifty.xsd}' and element '/complexType:elementType/effect'. Please use a Binding file to solve this problem.Continue anyway [not recommended] (y|n|?)
So I have two questions :
- Is there a binding.xml file available on the repository ? I haven't found it )
- Is it necessary that I generate the sources ? ( Aren't there already somewhere inside nifty.jar )
Maybe consider XmlBeans for this? We use it at work a lot and it’s really easy to integrate and use (IMHO). I haven’t tried it with the current nifty.xsd but the very first Nifty version did indeed use XmlBeans for reading XML-Files. It was removed later because people complained about the relative big size of the xmlbeans jar dependency
But for an editor XmlBeans may be more appropriate.
With that I can use the method addElementGroup() inside my code.
It worked but … after some tests, I finally conclued that creating directly Nifty XML via my editor was not good enough for want I wanted to do.
( Since I want the dialogs to be modular )
If some people wants the modified nifty.xsd I’ve done, I think I still have it.
( It still respects the same grammar but the elements are defined in a manner that you can create nifty xml files thanks to Castor Souce Generator )
So I dropped my idea, and now I’m using one Nifty xml that serves as a dialog template and I fill it dynamicly with data from a xml file in my own format.