Question : Strip out ’s in mySQL query | XML Parsing Error: undefined entity

I am using a select * from table_name and exporting it to a xml file.  I am getting a XML Parsing Error: undefined entity because of the
1:
’s 
in the data.  How do I strip out this in the sql query ahead of time (I am thinking there may be other entities that need to be stripped out so I want to strip all out) or otherwise fix this?

Answer : Strip out ’s in mySQL query | XML Parsing Error: undefined entity

You have a whole plethora of string manipulation functions including LOCATE() and REPLACE(), although if the number of potential characters to be replaced/removed is more than a couple, you'll probably want to write a stored procedure or PHP code to handle the string manipulations after the query has run.

See: http://dev.mysql.com/doc/refman/5.1/en/string-functions.html

Random Solutions  
 
programming4us programming4us