yunus
yunus

Reputation: 121

How to show/generate the special character "&" in xml file?

I have a spreadsheet like this:

enter image description here

It contains a special character "&". After I converted it to xml, it's rendered as an entity name enter image description here.

Here is the xml:

enter image description here

How to show/generate the special character "&" in xml file?

Thanks very much

Upvotes: 1

Views: 1757

Answers (2)

oldmonk
oldmonk

Reputation: 739

There is a detail description of predefined entity of XML in http://www.w3schools.com/xml/xml_syntax.asp.

enter image description here

Upvotes: 0

developer82
developer82

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

Related Questions