Hey all, actually, after reading the web a bit, i tend to prefer the following format...
<pool> <value><key>1</key><data>60</data></value> <value><key>2</key><data>51</data></value> <dir> <key>bla</key> <value><key>2</key><data>66</data></value> <value><key>1</key></value> </dir> </pool>
<key> is mandatory, but <data> is not.
The main reason is that a key can be any PD atom (except symbols with spaces) in pool, and XML attributes must not contain certain characters (like ' or " , probably others). The format looks a bit more general and robust to me than the one with the attributes. It also _looks_ more transformation-friendly....
greetings, Thomas
So my vote is for your description as shown below.
<pool> <value key="1">60</value> <value key="2">51</value> <dir key="bla"> <value key="2">66</value> <value key="1">44</value> </dir> </pool>
--
Adam T. Lindsay atl@comp.lancs.ac.uk Computing Dept, Lancaster University +44(0)1524/594.537 Lancaster, LA1 4YR, UK Fax:+44(0)1524/593.608 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-