I am storing XML file in DB as string format, before storing in DB i am making sure that the document is well formed and converting all special characters <,>,&,",' to < > etc.,
when i get the string data back form DB and converting the String to XML document using DOM Parser, but when i convert these encoded special characters (< > etc.) are being converted back to actual characters (<,>).
But I don't want this automatic decoding that making by DOM parser, i just want the same encoded characters as it is.
How do i avoid this decoding happening form DOM parser