• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generate java classes for xsd importing other xsd

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a requirement to import EXEC.xsd (which is child xsd) in NewAMOCORE.xsd (which is parent xsd) then to generate the java classes using xjc. I used binding.xjb. Even I tried catalog but I am not at all getting the solution.
Here is my code:


the command which i ran :


I got this error: cannot resolve the exec:EXECENTRY

What s the wrong? Is there any other approach to generate the java classes?

Thanks in Advance,
Geeta
 
Ranch Hand
Posts: 734
7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From all angle, the schema set is defective.

Before any consideration of customization :
[1] if you mean an xml instance look like this,

then you change this.


[2] If you mean an xml instance look like this,

then change the imported xsd.
 
Geeta Puttappanavar
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

g tsuji wrote:From all angle, the schema set is defective.

Before any consideration of customization :
[1] if you mean an xml instance look like this,

then you change this.


[2] If you mean an xml instance look like this,

then change the imported xsd.



Thanks a lot tsuji,
thats really helped me.
1st approach worked for me.
2nd approach also I tried but at

I am getting compile time error.

Thanks again,
Keep helping.
 
g tsuji
Ranch Hand
Posts: 734
7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the second case, make sure you comment out xs:element completely leaving xs:complexType exposed as a top-level element in the imported schema, as I have shown explicitly (watch carefully). I think you have not done so correctly on your side.
 
Straws are for suckers. Now suck on this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic