Topic: "Cannot parse Gallery XML."

Hello, I recently changed my gallery with SimpleViewer and now when I go to my gallery page I get this error.

Anyone know the solution?

Gallery.html:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Robbert Bruggeman's Portfolio - Gallery</title>
        
<script src="opennewwindow.js" type="text/javascript"></script> 

<link rel="icon" type="image/png" href="../favicon.png" />

<link href="../stylesheets/stylesheet/style.css" rel="stylesheet" title="Style" type="text/css" />

</head>

<body>
<!-- Background start -->
<div class="backgroundtop"></div>
<div class="background">
<a href="../index.html" class="header"></a>

<!-- Menu Start -->
<ul class="menu1">
<li><a id="left"></a></li>
<li><a id="home" href="../index.html"><b>Home</b></a></li>
<li><a id="about" href="../about me/about.html"><b>About Me</b></a></li>
<li><a id="projects" href="../projects/projects.html"><b>Projects</b></a></li>
<li class="current"><a id="gallery" href="gallery.html"><b>Gallery</b></a></li>
<li><a id="contact" href="../contact/contact.html"><b>Contact</b></a></li>
<li><a id="right"></a></li>
</ul>
<!-- Menu End -->

<!-- Background2 Start -->
<div class="background2top"></div>
<div class="background2">

<!-- Content Start -->
<div class="content">

<!-- ContentArea Start -->
<h1>// Gallery</h1>

<div class="content_areatop"></div>
<div class="content_area">

<div class="gallery">
    <!--START SIMPLEVIEWER EMBED -->
    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
    simpleviewer.ready(function () {
        simpleviewer.load('sv-container', '100%', '100%', '3284DE', true);
    });
    </script>
    <div id="sv-container"></div>
    <!--END SIMPLEVIEWER EMBED -->
</div>

</div>
<div class="content_areabottom"></div>
<!-- ContentArea End -->

</div>
<!-- Content End -->

</div>
<div class="background2bottom"></div>
<!-- Background2 End -->

<div class="layout_copyright">Copyright© Robbert Bruggeman</div>

</div>
<div class="backgroundbottom"></div>
<!-- Background End -->

</body>
</html>

Gallery.xml:

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

<simpleviewergallery 

    resizeOnImport="false"
    useFlickr="false"
    cropToFit="false"
    galleryStyle="MODERN"
    frameWidth="0"
    thumbPosition="BOTTOM"
    galleryWidth="100%"
    galleryHeight="100%"
    thumbColumns="4"
    thumbRows="1"
    backgroundColor="3284DE"
    indexPageName="simpleviewer.html"

>
  <image imageURL="images/blacksmith.png"
    thumbURL="thumbs/blacksmith.jpg"
    linkURL="images/blacksmith.png"
    linkTarget="_blank">
    <caption><![CDATA[A dwarf blacksmith I drew to practice poses.]]></caption>
  </image>
  <image imageURL="images/mooncastle.png"
    thumbURL="thumbs/mooncastle.jpg"
    linkURL="images/mooncastle.png"
    linkTarget="_blank">
    <caption><![CDATA[The idea for this came from an amusement park ride, a "dream world".]]></caption>
  </image>
  <image imageURL="images/merboy.png"
    thumbURL="thumbs/merboy.jpg"
    linkURL="images/merboy.png"
    linkTarget="_blank">
    <caption><![CDATA[A young merboy prince who runs away from home to go on an adventure.]]></caption>
  </image>
  <image imageURL="images/simon.png"
    thumbURL="thumbs/simon.jpg"
    linkURL="images/simon.png"
    linkTarget="_blank">
    <caption><![CDATA[Simon is a child who goes on adventures to face his fears.]]></caption>
  </image>
  <image imageURL="images/dreamhouse.png"
    thumbURL="thumbs/dreamhouse.jpg"
    linkURL="images/dreamhouse.png"
    linkTarget="_blank">
    <caption><![CDATA[An attempt to create a certain view by using a foreground and a background.]]></caption>
  </image>
  <image imageURL="images/parrot.png"
    thumbURL="thumbs/parrot.jpg"
    linkURL="images/parrot.png"
    linkTarget="_blank">
    <caption><![CDATA[A parrot I sketched and digitalized to practice more realistic drawing.]]></caption>
  </image>
  <image imageURL="images/turtle.jpg"
    thumbURL="thumbs/turtle.jpg"
    linkURL="images/turtle.jpg"
    linkTarget="_blank">
    <caption><![CDATA[A turtle I sketched and digitalized to practice more realistic drawing.]]></caption>
  </image>
  <image imageURL="images/giraffe.png"
    thumbURL="thumbs/giraffe.jpg"
    linkURL="images/giraffe.png"
    linkTarget="_blank">
    <caption><![CDATA[A giraffe I made as part of an idea for an educative game aimed at children.]]></caption>
  </image>
  <image imageURL="images/liljoe.png"
    thumbURL="thumbs/liljoe.jpg"
    linkURL="images/liljoe.png"
    linkTarget="_blank">
    <caption><![CDATA[Little Joe is a blacksmith and a fierce warrior.]]></caption>
  </image>
  <image imageURL="images/zorander.png"
    thumbURL="thumbs/zorander.jpg"
    linkURL="images/zorander.png"
    linkTarget="_blank">
    <caption><![CDATA[Zorander is a young knight in training.]]></caption>
  </image>
  <image imageURL="images/talimar.png"
    thumbURL="thumbs/talimar.jpg"
    linkURL="images/talimar.png"
    linkTarget="_blank">
    <caption><![CDATA[Talimar is the royal prince of a race of half humans / half dragons.]]></caption>
  </image>
  <image imageURL="images/RobGoat.png"
    thumbURL="thumbs/RobGoat.jpg"
    linkURL="images/RobGoat.png"
    linkTarget="_blank">
    <caption><![CDATA[This is myself made to look like a humanoid animal.]]></caption>
  </image>
  <image imageURL="images/dune.png"
    thumbURL="thumbs/dune.jpg"
    linkURL="images/dune.png"
    linkTarget="_blank">
    <caption><![CDATA[A promotional poster for a 3D trailer of Dune.]]></caption>
  </image>
  <image imageURL="images/dolemockup.png"
    thumbURL="thumbs/dolemockup.jpg"
    linkURL="images/dolemockup.png"
    linkTarget="_blank">
    <caption><![CDATA[A mockup for a promotional game for Dole Pineapples.]]></caption>
  </image>
</simpleviewergallery>

Re: "Cannot parse Gallery XML."

Please see this FAQ:
When I view my gallery I see the message 'Cannot Parse Gallery XML'. How do I fix this?

I have used the XML code you posted in a test gallery and it works OK.
Perhaps your web host adds some code to your XML file when you upload it to your web server which causes the problem.
Try the suggestion in the FAQ and see if this helps.

If you continue to experience difficulties, please post the URL to your gallery so that I can take a look and help further.

Steven Speirs
SimpleViewer Support Team.