Stripping line breaks pre-XML leaves spaces- what is the proper method?

techiekaran

New Member
I'm wondering the advised way to strip line-breaks from XML-destined PHP strings. Using the following method, I'm left with a varying 2-4 spaces between my XML tags.\[code\]$current = $xml->saveXML();$current = str_replace(array("\r\n", "\r", "\n"), "", $current);\[/code\]What is the proper syntax to remove line breaks so XML tags appear end-to-end, without having spaces added between them?
 
Top