I built a view "displaying items of type Comment" but the XML still has "nodes" as the root element and "node" as the container element for each comment.

Comments

allisterbeharry’s picture

Assigned: Unassigned » allisterbeharry

this is by design in the current release as I didn't think the root and container element names would be significant during usage but I'll change it to use whatever the base table of the view is, in this case comment(s)

sorikan’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha3

I am currently using alpha3, and I am seeing the same behavior, should I move to the Dev version for this change, or has it simply been pushed back due to other issues?

Otherwise awesome module BTW!

allisterbeharry’s picture

This is changed in the dev release (you'll have to wait till the snapshot is created on drupal.org today or you can pull it directly from CVS.) In the xml plugin options you can specify what the root element is, and each row element is named according to what the base table for the view is (users, nodes, etc.)

jafar104’s picture

Could it be possible to specify a name for the row element in the future, like the root element can be specified?

Thanks for this awesome module.

allisterbeharry’s picture

IN 6.x-1.0-beta1 you can specify the top-level child element (row) name as well as the root element name.

allisterbeharry’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.