I realise that it\'s not elegant or desired, but is it allowed (in well-formed XML) for an attribute value in an XML element to span multiple lines?
e.g.
<
http://www.w3.org/TR/REC-xml/#NT-AttValue
Seems to say everything except <, &, and your delimiter (' or ") are OK. So newline should be, too.
&
'
"