XML How to include an exclamation mark! in an XML text string? escape sequence?

I tried many escape sequence combinations to get exclamation mark on xml string in android resource folder - to no avail. Which xml string would you use for reference! eg? Thank...

+3


source to share


2 answers


The XML file must accept an exclamation point, except possibly immediately after the open angle parenthesis.

If it really refuses, you should be able to use a numeric entity: Help!

= Help!



Or you can get verebose <![CDATA[Help!]]>

+7


source


U can add text to attribute

nodElement->SetAttribute( "Name", node_tv->Text);

      



node_tv-> Text has special characters

0


source







All Articles