-
XML problem
I am trying to insert this code into an online bloggy page
Code:
<!-- Start of StatCounter Code -->
<script type="text/javascript">
var sc_project=2379598;
var sc_invisible=0;
var sc_partition=22;
var sc_security="c990e864";
</script>
<script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c23.statcounter.com/counter.php?sc_project=2379598&java=0&security=c990e864&invisible=0" alt="cool hit counter" /></a></div></noscript>
<!-- End of StatCounter Code -->
It says
Please correct the error below, and submit your template again.
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 reference to entity "java" must end with the ';' delimiter.
Please advise what i should do
thanks
-
Re: XML problem
whats the URL ?
that script if fine, there is no xml in it and its syntax is correct
-
Re: XML problem
is this site expecting XML and you're giving it html?
-
Re: XML problem
im using blogspot, just want add a statcounter.
Yes the site is expecting XML
-
Re: XML problem
if the site is expecting xml and your giving it html then it aint gunna work
a url would help so we can look at the rendered source
-
Re: XML problem
I'm not sure, exactly, 'cos I'm a bit tired, and that script isn't pretty, but maybe there's a problem with the border property some way down in the .js, if that gets checked.
Otherwise I dunno right now, I'll have a look when I feel more alert. A problem with XML is that you can't use capital letters for tags, can't remember if that applies to properties too. If there is some weird precheck of the script, it may hang there.
This may help, I dunno. Or this.
-
Re: XML problem
Thanks for help,
statcounter also allows for a xml only code, that also did not work
i ended up simply using a different statistics site (sitemeter) which did all automatically.