How can I put an & symbol in an attribute of an XML tag while keeping the XML valid?
<?xml version="1.0" ?>
<a text="b&c"/>
When I use W3School’s validator, I get the error:
EntityRef: expecting ‘
;‘
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a character reference to represent it:
&See the specification: