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

General XML related question...

 
Pad Ven
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How to do cross-referncing in XSD? I want an attribute of one XML element to contain the same value as one of the values of an attribute in another XML element declared earlier? I want to enforce this dependency in XSD - something like a Foreign key constraint for databases? If so, can somebody provide an example? Are element to attribute and element to element cross-references possible? If so, please give examples for them also?

Thanks and regards,
TVP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic