Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic