Are there any characters that are encoded in HTML but not XML, or vice versa?
Are all the encodings the same between them? Like > for greater than symbol?
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.
XML does predefine a handful of character entities. See section 4.6 of the XML 1.1 spec:
http://www.w3.org/TR/xml11/#sec-predefined-ent
In particular, XML defines
<,>,&,', and"(“All XML processors MUST recognize these entities whether they are declared or not”).Any other entities must be referenced via numeric reference, as Brian states, or by an appropriate definition in an
<!ENTITY ...>construct in the document itself or a referenced DTD.All of these entities are defined in HTML as well.