title: Uncaught Syntax Error: Unexpected token ILLEGAL With XML & Javascript
body: <p>I added this code to my blogger template, but it doesn't work and leaves this error in my Chrome console.</p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token ILLEGAL</p>
  </blockquote>
  
  <p>It indicates the error is here:</p>
  
  <pre><code>&lt;div id='slides'&gt;
      &lt;script type='text/javascript'&gt;document.write(&amp;quot;&amp;lt;script src=\&amp;quot;/feeds/posts/default/-/&lt;data:content/&gt;?max-results=&amp;quot;+numposts1+&amp;quot;&amp;amp;orderby=published&amp;amp;alt=json-in-script&amp;amp;callback=showrecentposts1\&amp;quot;&amp;gt;&amp;lt;\/script&amp;gt;&amp;quot;);&lt;/script&gt;                     
  &lt;/div&gt;
  &lt;div id='slider_nav'&gt;       
      &lt;script type='text/javascript'&gt;document.write(&amp;quot;&amp;lt;script src=\&amp;quot;/feeds/posts/default/-/&lt;data:content/&gt;?max-results=&amp;quot;+numposts1+&amp;quot;&amp;amp;orderby=published&amp;amp;alt=json-in-script&amp;amp;callback=showrecentposts1a\&amp;quot;&amp;gt;&amp;lt;\/script&amp;gt;&amp;quot;);&lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I think the problem is pin-pointed here: <code>&lt;data:content/&gt;</code></p>
  
  <p>However, this script works fine in other templates, but not in mine. I'm using the exact same script, and I don't understand why it isn't working.</p>
  
  <p>I've tried replacing the <code>&lt;data:content/&gt;</code> with <code>"+label1+"</code> which is what I want to do in the end result anyway, I just wanted to get it to work first. When I try adding the label variable, it throw this error in my console:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'length' of undefined</p>
  </blockquote>
  
  <p>Any help with this?</p>