I have a typical XML Schema (XS), where there is very deep nesting of complex types( I generated this XSD from XML instance using SPY). When I generate classes using JAXB(xjc), along with other classes, one class gets generated with n number of static inner classes in it(say
around 50). when I compile(JAVAC) this class, very long classnames
gets generated as :
Abcd$Efgh$Ijkl$Mnop$Qrst.......... and sometimes it becomes so long that MS WINDOWS( XP) does not like the file name and starts behaving abnormally with the file. I am facing this problem especially when I use something like eclipse or WSAD to compile the code. Please suggest a work around if you have come across this issue!!
As a work around, I thought of generating jaxb code from DTD, where hierarchy is not this much nested. BUT DTD is not fully supported -
what is the future of DTD support? will be removed at all? remember most of the XML docs still follow DTDs. Will the stable releases support DTD based generation?
Thanks in advance