How do inheritance and super-class/sub-classes work in XML?

B

bbcrock

Can anyone point me to an online example or article that discusses how
we can develop an XML schema that can be modified by related groups/
teams and have both of our computer systems trade information back and
forth correctly?

We have a situation where there is one master schema and a large group
wants to add 5 items that are only specific to their group and a
smaller group wants to add three items that are only specific to their
group and there has been no movement to consensus so far- only more
splintering and digging in of heels.

Thanks,

Don
 
J

Joseph Kesselman

Can anyone point me to an online example or article that discusses how
we can develop an XML schema that can be modified by related groups/
teams and have both of our computer systems trade information back and
forth correctly?

Reference both the existing schema document and one which defines new
types based on the types you want to extend. Use xsi:type in the
instance document to say you want the element interpreted as the
extended type rather than the base type.

Illustration:
http://www.ibm.com/developerworks/xml/library/ws-tip-xsdchoice.html?S_TACT=105AGX06&S_CMP=EDU
 

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

Forum statistics

Threads
474,174
Messages
2,570,941
Members
47,476
Latest member
blackwatermelon

Latest Threads

Top