Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML Schema Question (extend from abstract 'class').

From: Matthew Harrison <m.harrisson@-------.--->
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),


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent