Hello,

I'm looking for a solution to the following problem.

The module "views" in conjunction with "http://drupal.org/project/views_data_export" already gives me a very good foundation for my project.

My goal is to output the fields of a view as XML file. This works well so far.

The real problem is that I am tying to import an output of a view (in this case: Commerce - LineItems) to a second view which generates the XML format.

To get a clean output in XML format, I have removed all HTML elements with the help of the "views-view unformatted.tpl.php".

The problem is when I try to add own markup to the fields like "<position> <php print $ row;?> </ position>", the brackets around the word "position" outputs following: "&lt;Position&gt;".

I've really tried a lot, but do not get a "pure" XML format out of it.

Thanks for your help and sorry for my poor english… hoping you understand my problem;-)

Comments

steven jones’s picture

Status: Active » Fixed

Hi, you could try the patch in #1446102: Exporting fields that already output valid xml encoded content and see if that fixes your issue and allows you to not encode the entities.

3rd_rail’s picture

That solved my problem and saved my day;-) Have a nice WE! Thanks a lot.

Status: Fixed » Closed (fixed)

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