Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XML Schema Question [Thread Next] Re: XML Schema Question (extend from abstract 'class').To: NULL Date: 8/8/2007 12:05:00 AM
Boris Kolpackov wrote:
> Hi Matthew,
>
> Matthew Harrison <m.harrisson@c...> writes:
>
>> Conversation (attr:Reference)
>> --> Identity (1)
>> --> Id
>> --> Client
>> --> Sequence (atrr:Index) (1..n)
>> --> Sender
>> --> Timestamp
>
> This can be interpreted in many different ways. Shows us the XML
> documents that correspond to BlahConversation and Conversation.
>
> -boris
>
Conversation would never have a document defined against it (it's an
abstract 'class'):
However, here is two sample XML documents which are descendants, I want
them both to adhere to the Conversation schema in addition having
further definitions in either the Identity or Sequence sections, or
both. For example the MsgConversation has a MsgText, the
BlahConversation has a BlahInfo.
<?xml version="1.0" encoding="UTF-8"?>
<MsgConversation Reference="AAAA1234567890">
<Idenity>
<Id>0</Id>
<Remote>AA40019</Remote>
<Client>47</Client>
<Module>Msg</Module>
</Idenity>
<Sequence Index="1">
<Sender>remote</Sender>
<TimeStamp>2001-12-17T09:30:47.0Z</TimeStamp>
<MsgText>Blah Blah Blah</MsgText>
</Sequence>
<Sequence Index="2">
<Sender>client</Sender>
<TimeStamp>2001-12-17T09:30:47.0Z</TimeStamp>
<MsgText>Blah Blah Blah</MsgText>
</Sequence>
</MsgConversation>
<?xml version="1.0" encoding="UTF-8"?>
<BlahConversation Reference="AAAA1234567892">
<Idenity>
<Id>0</Id>
<Remote>AA40029</Remote>
<Client>44</Client>
<Module>Blah</Module>
</Idenity>
<Sequence Index="1">
<Sender>remote</Sender>
<TimeStamp>2001-12-17T09:30:47.0Z</TimeStamp>
<BlahInfo>01100010</BlahInfo>
</Sequence>
<Sequence Index="2">
<Sender>client</Sender>
<TimeStamp>2001-12-17T09:30:47.0Z</TimeStamp>
<BlahInfo>01101011</BlahInfo>
</Sequence>
</BlahConversation>
--
Pinging self [127.0.0.1] with 32 bites of banana cake:
Ping statistics for 127.0.0.1:
Slices: Sent = 4, Received = 0, Lost = 4 (100% loss),
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
