[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Re: [newbie] Mapping a Map 101?
  • From: PA <petite.abeille@g...>
  • Date: Mon, 13 Dec 2004 17:53:50 +0100
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:return-path:mime-version:in-reply-to:references:content-type:message-id:content-transfer-encoding:from:subject:date:to:x-mailer; b=REgQT+oYeA9KyS58mc7O37dyjJRo9VsFJKa6rRt+Is4WdYO/OJlldDAO5fdhqiy6piiU06puF+LJJ+p4cMtYi0OLynVJG5wQxJd5QoG4EdD8FQoQ4vTq1ps6njC+nzOlze3DS7aQZNvZd9U78faiDfYFtzbc2Yxwm2sGdCDP1lw=
  • In-reply-to: <74B14CBC0FEB9D4EB16969F09FA51F450B1130@M...>
  • References: <74B14CBC0FEB9D4EB16969F09FA51F450B1130@M...>


On Dec 13, 2004, at 17:45, Chiusano Joseph wrote:

>> <value type="int">10</value>
>>
>> versus
>>
>> <int>10</int>
>
> With the second approach, how would you distinguish between specific 
> elements?

Hmmm... not sure if I understand the question... a "minimalistic" map 
could be defined as an ordered sequence of elements ... so the first 
element is a key, the second one a value, and so on... for example:

1: <map>
2:	<string>aKey</string>
3:	<string>aValue</string>
4:	<string>anotherKey</string>
5:	<string>anotherValue</string>
6: </map>

When resolving such a structure, line 2 and 4 would be considered as 
keys and line 3 and 5 as values.

Was that the question?

Cheers,

PA.





Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member