Project:Views Datasource
Version:5.x-1.0-alpha2
Component:Code
Category:support request
Priority:normal
Assigned:allisterbeharry
Status:active

Issue Summary

First, I love the scope of this module! Thanks for working on it and good luck with your exams.

I need to build a simple XML view that will be used by a Flash file to pull in slides for our home page. I am using the "Views XML: Raw XML data document" View Type.

Everything is working great, but I can't seem to get the image content to show up in the XML file without the associated HTML. I've tried all sorts of display options from the View options drop-down for the field - but I would definitely prefer to use an Imagecache profile that shows up in the list. I have attached a screenshot of the that portion of the View form where I am defining the fields.

Here is the error I am receiving:

XML Parsing Error: undefined entity
Location: http://npower.org/hp-slideshow.xml
Line
Number 8, Column 76:    <ImagePicturefield_picture>&lt;div class=&amp;quot;field-item&amp;quot;&rt;http://npowerorg/files/imagecache/hp_slideshow/gallery/building%2C+sky+and+moonjpg&lt;/div&rt;</ImagePicturefield_picture>
</ImagePicturefield_picture>

Here is a look at the XML output. I didn't noticed this at first, but I saw it once I pasted this code. I have a Views Link field in my output. The value is supposed to be "http://www.google.com", but it comes out as "http://wwwgooglecom". Looks like all the periods are being stripped out somewhere.

<?xml version="1.0" encoding="UTF-8" ?>
<!-- generator="Drupal Views_Datasource.Module" -->
<nodes>
  <node>
    <NodeTitle>Slide One Slide One Slide One</NodeTitle>
    <TextSynopsisfield_synopsis>Lorem ipsum dolor sit amet, consectetuer adipiscing elit Sed a nunc vitae metus euismod suscipit Donec in dui ac arcu sollicitudin iaculis </TextSynopsisfield_synopsis>
    <LinkLinkURLfield_link_url>http://wwwgooglecom</LinkLinkURLfield_link_url>
    <ImagePicturefield_picture>&lt;div class=&amp;quot;field-item&amp;quot;&rt;http://npowerorg/files/imagecache/hp_slideshow/gallery/building%2C+sky+and+moonjpg&lt;/div&rt;</ImagePicturefield_picture>
  </node>
</nodes>
AttachmentSize
Picture 3.png35.71 KB

Comments

#1

Looks like all URLs are having dots stripped out.

#2

I'm having the same issue .. all dots are getting stripped out of the URL's

#3

Do a compare between the uploaded version of views_xml.module here and the one the one from this module. You will where I have made modifications to make it work.

AttachmentSize
views_xml.module 8.64 KB

#4

Thank you so much...really helped. Just copied your module file in instead of mine and the dots are now appearing

#5

Assigned to:Anonymous» allisterbeharry

The fix for this is committed to the 6.x-1.0-beta version. I still have to backport it to the 5.x Views 1 module.

nobody click here