0

I have two xsd files with same root element name.Ideally,it is preferred to have two unique names in these 2 xsd files.

PROBLEM FACED:

If I want the JAXB to create classes with unique identifictaion ,how can we acheive through external binding?

Can anyone help me?

sskumar86
  • 161
  • 1
  • 2
  • 13
  • See [this](http://stackoverflow.com/q/5157560/1989025) other SO question. – W Almir Sep 27 '13 at 08:45
  • Thanks Almir,But,one small question based on the link you suggested.Does it mean that 'node="//xs:element[@name='OLDROOTNAME']"' is always a 'complex type' if you want to create a class with desired name? – sskumar86 Sep 27 '13 at 09:26
  • You can rename attributes as well as complex types. Check [here](http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/tutorial/doc/JAXBUsing4.html#wp149287), section "Fixing Collide Example" for a detailed example – W Almir Sep 28 '13 at 18:20
  • -----what does this do in xjc compilation? – sskumar86 Dec 05 '13 at 08:52

0 Answers0