I am currently in need of processing a formatted XML to an unformatted single line XML. I had gone through this SO answer for my reference.
However, my formatted XML string has 3500 lines. On using the method mentioned on the above answer shared, it is currently taking more than 18ms for processing my XML.
Is there a faster way to do this, at the rate of 5ms for 3500 lines?