Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apostrophe in XML

Status
Not open for further replies.

SBpsc

MIS
Dec 1, 2004
50
CA
Hi:

I am really new to xml and have a question about apostrophe.

What is the difference between ' and ’

If I use ' for something defined as an element, the page displays properly. It gives me garbage if I use ’

However, within the paragraph <p>...</p>, I have to use &#8217; for the page to display the apostrophe properly. The &apos; displays as &apos; if I use it instead.

Thanks for your time.
 
A lot depends on how you're reading the XML. If you're using a DOM or other XML-aware library/tool/utility, it should un-escape the &quot; correctly. But if you're reading it as text, then that won't happen.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top