Hi,
I need to retrieve all items and values in a Metadata container. I've managed to get the rootnode of it.
The structure of the dcr is as followed. When doing "my
@items = $rootnode->list('item');" the
@items array
is empty since the next node in the hierarchy is <value>. How can I retrieve a list of all items with the name
and the value? Second what sort of mechanism can I use to process items with more than one value (e.g. InformationType)? I'd like to get them in a comma separated list.
Cheers
Marcus
<item name="Metadata">
<value>
<item name="SearchQuery">
<value>asfd</value>
</item>
<item name="InformationType">
<value>Download</value>
<value>Images</value>
</item>
<item name="Category">
<value>Products</value>
</item>
</value>
</item>