[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [newbie] Mapping a Map 101?
On Dec 11, 2004, at 00:10, Michael Kay wrote: >> Is there a more or less "agreed upon" scheme to define a map type >> structure in XML? > > No. Bummer :/ I would have thought that such a structure would have been pretty common by now, no? > I tend to use <entry key="key">value</entry> probably because it uses > only > two names and I have trouble thinking of names. I see. In my case, keys can be of any type, so I'm not quite sure if using an element attribute would work... How would I express the following if using element attributes? <map> <entry> <key> <collection> <string>Compound</string> <string>Key</string> </collection> </key> <value> <integer>101</integer> </value> </entry> </map> Thanks! Cheers, PA.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|