Your correct answer is A & C as the "
is not a character that must be encoded in element data.
You should always be XML encoding characters such as >
, <
, and &
to ensure that you don't have issues if they are NOT inside a CDATA section. These are key items to be concerned about for element data.
When talking about attributes you have to then also be careful of '
and "
inside attribute values depending on the type of symbol you use to surround the value.
I've found that often encoding "
and '
is a better idea in all aspects as it helps at times when converting to other formats, where the "
or '
might cause problems there as well.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…