Defining composed keys [XSD]

  • Thread starter Francesc Guim Bernat
  • Start date
F

Francesc Guim Bernat

Dear collegues,

I've this XML:

<?xml version="1.0"?>
<model>
<entity id="1">
<object id="1"></object>
<object id="2"></object>
</entity>
<entity id="2">
<object id="1"></object>
<object id="2"></object>
</entity>
</model>

I want to define a "composed" primary key for identify an element
object, where the identifiers of this object are the id of the entity
and the id of the object. But as i can't define a selector that point
to objects parent i'm not able to check this property throught an XML
Schema.

How i can define an XML schema that verify this property ?
any idea?


Thanks,

Francesc Guim Bernat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top