Isn't it because you are trying to process a JSON object as XML data?
On Oct 24, 2:11 pm, TrixJo <tri...@gmail.com> wrote:
> I am trying to search twitter content using a mySQL/PHP entry in a
> $contents = file_get_contents(
> $json = json_decode($contents);
> I am returning the results via AJAX as an XML file
> The problem that I get is:
> XML Parsing Error: not well-formed
> Line Number 77, Column 44: [refresh_url] => ?
> where "Indonesia" happens to be the value of $row[topicTitle]
> The problem is with the value of $row[topicTitle] -- doesn't matter
> if the term is "Indonesia" or any other word or phrase (I tried a
> bunch) -- I keep getting that XML error
> I also tried enclosing it with single quotes, same error
> help please?