users@jaxb.java.net

problem with XJC while compiling mixed type DTD element

From: Anoop Anujan <anoopmarar_at_gmail.com>
Date: Wed, 12 Jan 2011 14:48:26 +0000

Hi,

I have a DTD which looks like :

<?xml version="1.0" encoding="UTF-8"?>
<!--DTD generated by XMLSpy v2007 sp1 (http://www.altova.com)-->
<!ELEMENT item (#PCDATA | struct)*>
<!ELEMENT struct (#PCDATA)>

When I use this DTD in Ant XJC task, two classes are generated: Item.java
and Struct.java. But there is no method in Item.java to get the Struct
object.

Is there a way to resolve this?

-Anoop