users@jaxb.java.net

help with Schema describe different object depends to attribute

From: Andrew Hnezdyuk <ahnezdyuk_at_gmail.com>
Date: Wed, 22 Jun 2011 13:28:11 +0300

Hi,
I have 2 response
1 <response method="status-response">
      <msg id="1" mid="MID" count="COUNT" status="STATUS" error_mess="
ERROR_MESSAGE" />
</response>

2
 <response method="send-sms">
<msg id="1" mid="MID" res="RESULT" error_mess="ERROR_MESSAGE" />
</response>

I need generate two different class depends of attribute "method"
and when Unmarshaller response get correct object,
Thank you