in reply to XML-related Regular Expression question

I would reccomend following particle's advice. To answer your question however, This REGEX will replace all newlines that are within elements with a space.
$XML_string =~ s/([^>])\n+([^<])/$1 $2/g


John