Lists Home |
Date Index |
- To: firstname.lastname@example.org
- Subject: [newbie] Mapping a Map 101?
- From: PA <email@example.com>
- Date: Fri, 10 Dec 2004 23:04:03 +0100
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:return-path:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=D8hZCXAL/PkWx+8E/emFJK36G4sOyWoeCDGPVcgQnOJODP5FQPOxkDT3OHkjGbwdS2mLLfCfSXlRSggmRGFMyz7mL+uu9PZktH61zUZs4YiZYhdSnM/wL+IOuB+RezcHku9m+7TEusXOGofWfhRxcSBbKdv4hCdFhLSxRkCs43s=
Not quiet sure if this is the right forum for such a basic question,
but here you go...
I would like to map a, er, map (as in java.util.Map) into a XML
element... but I'm not quiet sure how "verbose" I should be...
The above pretty much "spell out" everything: a map is composed of
entries containing key value pairs.
This is pretty much how XML-RPC defines a structure:
Alternatively, XStream encodes a Map pretty much like the above, but
drops the inner <key/> and <value/> while still specifying an <entry/>
Finally, Apple uses only one <key/> element in their property lists:
In theory a map element could get going by simply defining it as a
succession of values:
Is there a more or less "agreed upon" scheme to define a map type
structure in XML?