Reputation: 121
I have a spreadsheet like this:
It contains a special character "&". After I converted it to xml, it's rendered as an entity name .
Here is the xml:
How to show/generate the special character "&" in xml file?
Thanks very much
Upvotes: 1
Views: 1757
Reputation: 739
There is a detail description of predefined entity of XML in http://www.w3schools.com/xml/xml_syntax.asp.
Upvotes: 0
Reputation: 13713
You can't have the & sign in XML. It's not a properly formatted XML - that's why it's replaced with the & symbol.
Another option you have is using CDATA like this:
<![CDATA[SAILOR T&T]]>
Upvotes: 1