users@jaxb.java.net

Jaxb doesn't generate Interface for element of complex type

From: Himalaya Gupta <himalaya18_at_gmail.com>
Date: Tue, 10 Jun 2014 12:10:41 +0530

​Hi,

I have the following schema.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
 jaxb:version="1.0"
 xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
 jaxb:extensionBindingPrefixes="xjc">

 <xsd:annotation>
<xsd:appinfo>
 <jaxb:globalBindings generateValueClass="false">

 </jaxb:globalBindings>
</xsd:appinfo>
</xsd:annotation>​

<xsd:element name="action" type="action-config"/>

<xsd:complexType name="action-config">
<xsd:attribute name="type" type="xsd:string"/>
 <xsd:attribute name="state" type="xsd:string"/>
<xsd:attribute name="serviceid" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>

It generates the interface ActionConfig and does not generates the
interface Action.

Can you please help me out to fix the issue.
Thanks in advance

-- 
Himalaya Gupta