Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to group the output by date, so that between "root node" and "item node" there is a "group node". In this case I would like to group by date, so that all items with the same date are wrapped in the same "group node" tag.
Is this possible?
<root node>
<day date="2014-01-22">
<item node>
<field1></field1>
<field2></field2>
</item node>
<item node>
<field1></field1>
<field2></field2>
</item node>
</day>
<day date="2014-01-23">
<item node>
<field1></field1>
<field2></field2>
</item node>
<item node>
<field1></field1>
<field2></field2>
</item node>
</day>
<root node>