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>
CommentFileSizeAuthor
#3 views_xml.module8.64 KBcapellic
Picture 3.png35.71 KBcapellic

Comments

capellic’s picture

Looks like all URLs are having dots stripped out.

Djamu’s picture

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

capellic’s picture

StatusFileSize
new8.64 KB

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.

thomasmuirhead’s picture

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

allisterbeharry’s picture

Assigned: Unassigned » 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.

pasqualle’s picture

Status: Active » Closed (won't fix)

Sorry, the Drupal 5 version is not supported any more.

If the problem exists in the D6 or D7 release please reopen the issue..