PHP - SimpleXML parse error?

As mentionned in other answers and comments, your source XML is broken and XML parsers are supposed to reject invalid input. Libxml has a "recover" mode which would let you load this broken XML, but you would lose the "&sid" part so it wouldn't help.

Darryl has the right answer as to why this is happening in his comment above. One way of fixing this would be to do a str_replace() to replace all '&' ampersands with '&' in the XML. According to the PHP manual you could also use this regular expression to replace ampersands with their entities.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions