Jump to content

[SOLVED] xml parsing error -- invalid character


simon551

Recommended Posts

This is the actual error the browser is feeding me:

 

XML Parsing Error: not well-formed

Location: http://localhost/vtmorg/Admin/New%20Folder/get_contracts.php

Line Number 20, Column 16: <Division>M&L</Division>

-----------------------------^

 

I think it has to do with the "M&L" having an & sign in it? Is there a way around this while still keeping the & sign? I'm unable to to this so far. I tried this:

        $row['Division'] = str_replace("&", " - ", $row['Division']);

which works, but then I lose the printed "&" which I kind of need. I guess this is a regex thing but again I don't know how to do it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.