Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Schema - polymorphism

 
Arundhathi Menon
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Polymorphism

Schema A:


XML Document which uses Schema A:




So the element chineseRecipe will now have the cd:recipe type and not the ab:recipe type as defined in the schema.

But how do we check whether cd:recipe is in anyway inherited from ab:recipe???

Thank you in advance

Regards
Arundhathi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic