Topic: Cannot Parse Gallery XML

Hi there. I've made a gallery using Photoshop CS4 and uploaded all contents of the output folder to my website. It works perfectly fine on my computer, but not on the web... it's giving me an error saying: Cannot Parse Gallery XML. When I open up the gallery.xml file, I get an error saying: error on line 25 at column 1: Extra content at the end of the document. However when I look into the code, there is no extra content or code anywhere.... I haven't changed anything since the upload either, so I can't figure out why it won't work.

Here's the code:

<?xml version="1.0" encoding="UTF-8"?>

<!-- OPTIONS SUPPORTED BY STANDARD SWF -->
<simpleviewergallery

    title="A Sacks Photography"
    textColor="FFFFFF"
    frameColor="FFFFFF"
    thumbPosition="LEFT"
    galleryStyle="MODERN"
    thumbColumns="3"
    thumbRows="4"
    showOpenButton="false"
    showFullscreenButton="false"
    frameWidth="20"
    maxImageWidth="800"
    maxImageHeight="800"
    imagePath="images/"
    thumbPath="thumbs/"
    useFlickr="false"
    flickrUserName=""
    flickrTags=""
    languageCode=""
    languageList="">

    <image imageURL="images/IMG_60.jpg" thumbURL="thumbs/IMG_60.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_35.jpg" thumbURL="thumbs/IMG_85.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_3.jpg" thumbURL="thumbs/IMG_3.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_3.jpg" thumbURL="thumbs/IMG_2.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_8.jpg" thumbURL="thumbs/IMG_58.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_37.jpg" thumbURL="thumbs/IMG_37.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_60.jpg" thumbURL="thumbs/IMG_62.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_6.jpg" thumbURL="thumbs/IMG_91.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/IMG_6.jpg" thumbURL="thumbs/IMG_3.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/sydn53.jpg" thumbURL="thumbs/sydney.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="images/syd.jpg" thumbURL="thumbs/sydney.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
    <image imageURL="s61.jpg" thumbURL="thumbs/sydney.jpg" linkURL="" linkTarget="" >
        <caption></caption>
    </image>
</simpleviewergallery>

For the record, I've modified the proper image file numbers, but just for this post... Any help you can give me would be much appreciated! Thanks so much.

Re: Cannot Parse Gallery XML

possibly the xml got munged when you uploaded it. try re-uploading it.

Felix Turner
SimpleViewer Support Team.

Re: Cannot Parse Gallery XML

Okay, I've just done that. I deleted the original gallery/index/simpleviewer.swf file from my file manager, and even re-made the gallery with photoshop, uploaded it again, and it still doesn't work. sad

Any more suggestions? Anything else you need from me to help?

Thanks!

Re: Cannot Parse Gallery XML

whats the URL?

Felix Turner
SimpleViewer Support Team.

Re: Cannot Parse Gallery XML

it's http://www.asacks.com and http://www.asacks.com/gallery.xml

Thank you so much! I really appreciate your help

Re: Cannot Parse Gallery XML

Why is there a table,<table align="center" border="0" cellpadding="1" cellspacing="0" width="728">, in your gallery.xml? Ahh it looks like your host adds a header to your files. You may be able to hack your way around this by renaming your gallery.xml to something else like gallery.blah and then change flashvars.galleryURL = "gallery.blah"; in your html to match. If that does not work you may need a different host  or try calling them.

<!-- begin banner code -->

<table bgcolor="#000000" align="center" border="0" cellpadding="1" cellspacing="0" width="728">
<tr>
<td width="100%"
    <table background="/nf-images/nf_back.gif" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#E7E7E7">
    <tr>
 
        <td width="10%">
        <a href="http://www.netfirms.com"><img alt="Free Web Hosting by Netfirms" align="absmiddle" border="0" src="/nf-images/Freewebhosting.gif" width="184" height="24" /></a><br />
        </td>

        <td width="90%">

        <font size="2"><a href="http://www.netfirms.com">Web Hosting by <b>Netfirms</b></a> | <a href="http://www.netfirms.com/domain-names">Free Domain Names by <b>Netfirms</b></a></font>
        </td>

    </tr>
    </table>   
    
</td>

</tr>
</table>

<table align="center" border="0" cellpadding="1" cellspacing="0" width="728">
<tr>
<td width="100%">

<img src="/nf-images/freewebhosting.webhosting.asis" width="1" height="3" /><br />

<script type="text/javascript"><!--
google_ad_client = "pub-3488059345083622";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>




</td>
</tr>
</table>

<!-- end banner code -->
<?xml version="1.0" encoding="UTF-8"?>


<simpleviewergallery

    title="A Sacks Photography"
    textColor="FFFFFF"
    frameColor="FFFFFF"
    thumbPosition="LEFT"
    galleryStyle="MODERN"
    thumbColumns="3"
    thumbRows="4"
    showOpenButton="false"
    showFullscreenButton="false"
    frameWidth="20"
    maxImageWidth="800"
    maxImageHeight="800"
    imagePath="images/"
    thumbPath="thumbs/"
    useFlickr="false"
        flickrUserName=""
    flickrTags=""
    languageCode=""
    languageList=""
>

    <image imageURL="images/IMG_6040.jpg" thumbURL="thumbs/IMG_6040.jpg" linkURL="" linkTarget="" >
        <caption>IMG_3137.jpg</caption>
    </image>

    <image imageURL="images/IMG_3185.jpg" thumbURL="thumbs/IMG_3185.jpg" linkURL="" linkTarget="" >
        <caption>IMG_3185.jpg</caption>
    </image>
    <image imageURL="images/IMG_3233.jpg" thumbURL="thumbs/IMG_3233.jpg" linkURL="" linkTarget="" >
        <caption>IMG_3233.jpg</caption>
    </image>
    <image imageURL="images/IMG_3942.jpg" thumbURL="thumbs/IMG_3942.jpg" linkURL="" linkTarget="" >
        <caption>IMG_3942.jpg</caption>

    </image>
    <image imageURL="images/IMG_5378.jpg" thumbURL="thumbs/IMG_5378.jpg" linkURL="" linkTarget="" >
        <caption>IMG_5378.jpg</caption>
    </image>
    <image imageURL="images/IMG_6062.jpg" thumbURL="thumbs/IMG_6062.jpg" linkURL="" linkTarget="" >
        <caption>IMG_6062.jpg</caption>
    </image>
    <image imageURL="images/IMG_6391.jpg" thumbURL="thumbs/IMG_6391.jpg" linkURL="" linkTarget="" >

        <caption>IMG_6391.jpg</caption>
    </image>
    <image imageURL="images/IMG_6623.jpg" thumbURL="thumbs/IMG_6623.jpg" linkURL="" linkTarget="" >
        <caption>IMG_6623.jpg</caption>
    </image>
    <image imageURL="images/sydney 053.jpg" thumbURL="thumbs/sydney 053.jpg" linkURL="" linkTarget="" >
        <caption>sydney 053.jpg</caption>

    </image>
    <image imageURL="images/sydney 206.jpg" thumbURL="thumbs/sydney 206.jpg" linkURL="" linkTarget="" >
        <caption>sydney 206.jpg</caption>
    </image>
    <image imageURL="images/sydney 261.jpg" thumbURL="thumbs/sydney 261.jpg" linkURL="" linkTarget="" >
        <caption>sydney 261.jpg</caption>
    </image>
</simpleviewergallery>
Mike Richards
SimpleViewer Support Team.

Re: Cannot Parse Gallery XML

I've renamed the gallery.xml file to gallery.blah. IT WORKS! Thank you so much for your help, you made my day  smile

Re: Cannot Parse Gallery XML

wtf.  im going to try this now.  haha.