Results 1 to 7 of 7

Thread: XML problem

  1. #1
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    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

  2. Internet, Programming and Graphics   -   #2
    whats the URL ?
    that script if fine, there is no xml in it and its syntax is correct

  3. Internet, Programming and Graphics   -   #3
    tesco's Avatar woowoo
    Join Date
    Aug 2003
    Location
    Canadia
    Posts
    21,669
    is this site expecting XML and you're giving it html?

  4. Internet, Programming and Graphics   -   #4
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    im using blogspot, just want add a statcounter.
    Yes the site is expecting XML

  5. Internet, Programming and Graphics   -   #5
    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
    Last edited by m.r.davies; 03-25-2007 at 07:31 PM. Reason: Automerged Doublepost

  6. Internet, Programming and Graphics   -   #6
    Snee's Avatar Error xɐʇuʎs BT Rep: +1
    Join Date
    Sep 2003
    Location
    on something.
    Age
    44
    Posts
    17,985
    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.
    Last edited by Snee; 03-25-2007 at 08:18 PM.

  7. Internet, Programming and Graphics   -   #7
    100%'s Avatar ╚════╩═╬════╝
    Join Date
    Jan 2003
    Posts
    13,383
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •