Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
Ruth Stout was famous for gardening naked. Just like this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic