SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast PHP_Adam's Avatar
    Join Date
    Jan 2009
    Location
    West Yorkshire, UK
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML: Undefined entity Acirc ??

    I have done my usual XML PHP output file, except with this output their is a problem with one of the entities.

    I have removed the pass key, any ideas what's wrong with this?
    http://cheats.funshed.com/cheatsdb.p...ship%20edition

    I ran it trough some validation and it says:
    Warning: Undefined entity Acirc
    in unnamed entity at line 13 char 8066 of http://cheats.funshed.com/cheatsdb.p...ship%20edition
    Warning: Undefined entity frac12
    in unnamed entity at line 13 char 8074 of http://cheats.funshed.com/cheatsdb.p...ship%20edition
    Any advice, guidance would be appreciated!

    (it may appear slow, the sub domain is currently hosted on my (this) laptop)

  2. #2
    SitePoint Zealot NuWeb's Avatar
    Join Date
    Aug 2005
    Location
    UK
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im still having problems with this issue, the webserver was offline so sorry if you tried to help before. Here is the error I receave
    Code:
    XML Parsing Error: undefined entity
    Location: http://cheats.funshed.com/cheatsdb.php?platform=xbox%20360&txtSearch=bully:%20scholarship%20edition
    Line Number 13, Column 8059:
    Here is the XML document that is somehow incorrect:
    http://pastebin.com/f3524f3a4

    Any advice, or guidance is appreciated.

  3. #3
    SitePoint Zealot NuWeb's Avatar
    Join Date
    Aug 2005
    Location
    UK
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tried lots of things to solve this, but I think it was these code that fixed it for me.
    PHP Code:
    function xmlentities($text)
      {
        
    $search = array('&','<','>','"','\'');
        
    $replace = array('&amp;','&lt;','&gt;','&quot;','&apos;');
        
    $text str_replace($search,$replace,$text);
        return 
    $text;
      } 


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
  •