Hello,
I have a requirement where I transform a XML document into another and then store it to the Database. To handle extraction/insertion of nodes, I use DOM before and after transformation.
I need to preserve the linefeeds as they were. So "\r\n" should be "\r\n" in the output document and so on. But right now, my linefeed gets converted to "\n" while creating a String back from the DOM Document. I have tried using XMLSerializer and JDOM. Any input will be appreciated.
Thanks in advance |