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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replacing XML entities or special characters

Status
Not open for further replies.

lawlerpat

Programmer
Jun 28, 2002
54
US
I am looking for a way to replace the XML entities from varchar type data in a query.
For example if my query returns 'Bob&Mary' I want that to be replaced with 'Bob&Mary'.
My problem is what if the db field already has the replacement in it. I don't want to replace the & that is part of the special element. Or I might end up with 'Bob&Mary' or worse.

Any suggestions?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top