Click to See Complete Forum and Search --> : "template could not be parsed" error


ne_plus
01-13-2010, 07:36 PM
I am utilizing a blogger template & attempting to manually patch DISQUS comment script. When I input the script:


<!-- +disqus --> <b:else/> <div id="disqus_thread"></div> <div style="display:none;" id="disqus_post_title"><data:post.title/></div> <div style="display:none;" id="disqus_post_message"><data:post.body/></div> <script type="text/javascript"> var disqus_url = '<data:post.url/>'; var disqus_title = document.getElementById('disqus_post_title').innerHTML; var disqus_message = document.getElementById('disqus_post_message').innerHTML; </script> <script type="text/javascript" src="http://SHORTNAME.disqus.com/embed.js"></script> <a expr:href='"http://disqus.com"' class='dsq-brlink'>blog comments powered by <span class='logo-disqus'>Disqus</span></a> <!-- -disqus -->


I receive the blogger error,

"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.XML error message: The content of elements must consist of well-formed character data or markup."

Are there any pros out there that know what is going on with this & how to fix?


Blogger Site (XML Doc): http://selfemployedmavens.blogspot.com/

DISQUS Patch: http://disqus.com/docs/patch-blogger/

xml-looser
01-14-2010, 05:32 AM
your xml file is not valid
ther is no root element



<data>
<!-- +disqus -->
<b:else/>
<div id="disqus_thread"></div>
<div style="display:none;" id="disqus_post_title">
<data:post.title/>
</div>
<div style="display:none;" id="disqus_post_message">
<data:post.body/>
</div>
<script type="text/javascript">var disqus_url = '<data:post.url/>'; var disqus_title = document.getElementById('disqus_post_title').innerHTML; var disqus_message = document.getElementById('disqus_post_message').innerHTML;</script>
<script type="text/javascript" src="http://SHORTNAME.disqus.com/embed.js"></script>
<a expr:href="&quot;http://disqus.com&quot;" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
<!-- -disqus -->
</data>

ne_plus
01-14-2010, 10:46 AM
Thanks for the reply. That didn't seem to work. I inserted the code as described and no luck? Could it be this template wont work with DISQUS coding?