in reply to Re^2: Issue in printing content type in XML
in thread Issue in printing content type in XML

Most likely what you are reading "from the database" is not what you are handing to ->_tagChar(). Debug your code or post the relevant section of your code or, even better, a self-contained program that is shorter than 20 lines and still has the problem.