问题
For example, is this valid XML?:
<foo bar="3<5" />
Or do I have to escape them?:
<foo bar="3<5" />
回答1:
You have to escape the literal <.
You can check this using any XML Validator.
来源:https://stackoverflow.com/questions/13687998/can-literal-angle-brackets-be-used-in-quoted-xml-attribute-value-strings