Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

XML Schema - polymorphism  RSS feed

 
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
Boost this thread!