Re: [xml-dev] [newbie] Mapping a Map 101?

From
Elliotte Harold <>
To
PA <>
Date
2004-12-13T14:17:54Z
ID
<>
Thread
Re: [xml-dev] [newbie] Mapping a Map 101?
PA wrote:

> Ok. Why would relying on such relationships be a "bad" thing though? 
> What are the benefits of introducing an <entry> tag in the <dict> 
> structure?

1. Most APIs/languages/tools such as XSLT can much more conveniently 
operate on the parent-child relationship than the sibling relationship.

2. It's more extensible. For instance, you could extend the entry 
approach to include multi-valued keys and valueless keys quite easily.

-- 
Elliotte Rusty Harold  
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim