Hallo, Adam Lindsay hat gesagt: // Adam Lindsay wrote:
It isn't, really. I was hoping to steer you away from this because it resembles Apple's property-list format, and that's a bit of a pain to deal with. However, the fact that you enclose keys and values within a parent value or dir element makes things a lot easier than Apple's format. I'm not sure I'd call it transformation-friendly,
If it's xml, it is transformation friendly by definition, isn't it?
but it allows for XPath expressions like this:
//dir[key='bla']/value[key='2']/data (Give me the data for the key #2 that's in any directory with the key bla.)
The interesting aspect of this format is that it allows you to reverse the lookup with minimal effort: //value[data='51']/key (Give me the key for all data values that equal 51.)
Who knows if that functionality is actually useful for us, though...
Interesting. I didn't think of that, yet.
Frank Barknecht _ ______footils.org__