I understand that certain characters need to be escaped in XML, and the ampersand is one of those characters.
According to this, there are only 5 characters that need to be escaped: What characters do I need to escape in XML documents?
My question is, if you have an ampersand, and it's NOT followed by one of those, does that mean the XML is invalid?
The reason why I'm asking is because I'm using a web service that's returning this:
<blah></blah>
I'm trying to decide whether it's valid or invalid XML. If it's invalid, I'll ask them to fix it. If it's valid, then my php code isn't handling it correctly, and I'll need to fix it.
According to w3schools validation (http://www.w3schools.com/xml/xml_validator.asp), it's invalid, but I just wanted to make sure.