PDA

View Full Version : XML problem



100%
03-23-2007, 12:57 PM
I am trying to insert this code into an online bloggy page


<!-- 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

m.r.davies
03-24-2007, 04:46 PM
whats the URL ?
that script if fine, there is no xml in it and its syntax is correct

tesco
03-24-2007, 06:04 PM
is this site expecting XML and you're giving it html?

100%
03-24-2007, 06:24 PM
im using blogspot, just want add a statcounter.
Yes the site is expecting XML

m.r.davies
03-25-2007, 07:30 PM
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

Snee
03-25-2007, 08:13 PM
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. (http://forum.statcounter.com/vb/showthread.php?t=26983) Or this. (http://forum.statcounter.com/vb/showthread.php?t=26893)

100%
03-28-2007, 09:40 AM
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.