Maybe something like the following could be a good compromise?
<resource raw="false" content-type="application/xml"
modified-date="2012-02-02T19:13:42.000Z" name="file.xml">
<property name="prop1">value1</property>
<property name="prop2">value2</property>
</resource>
Just my two cents.
M.
On 03/09/2014 15:22, Christian Grün wrote:
Only I think that to avoid confusion with "resource"
elements returned by db:list-details(), maybe it's better to call it
"properties".
Makes sense.
I would also think that it's worth mirroring the original system
"properties" returned by db:list-details.
I thought about this, too. Let's see.
Okay, so from this signature I understand that you're not planning on
returning different property value types. Is that right?
Yes. As it's not straightforward how to represent different types with
BaseX commands, and as string values can easily be converted to
booleans, numbers and dates, I prefer to start with a simple approach,
which may be extended in future.
Thanks for your feedback,
Christian