Remove newlines from juce string

I’m trying to send XML to a java server and i need to remove the newlines from the XML file. What is the best way to do this? I’m stumped right now…

When writing from the XmlElement, you can specify single line in the TextFormat:

Hope that helps

Ah this does help! Thank you!