Download & Extend

Raw XML always has "nodes" and "node" as the root elements regardless of the content type

Project:Views Datasource
Version:6.x-1.0-alpha3
Component:Code
Category:bug report
Priority:normal
Assigned:allisterbeharry
Status:closed (fixed)

Issue Summary

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

#1

Assigned to:Anonymous» 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)

#2

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!

#3

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.)

#4

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.

#5

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

#6

Status:active» fixed

#7

Status:fixed» closed (fixed)

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

nobody click here