Writing colored XML is very simple using $xml in an empty line. Following text will be considered XML.
$xml
<task id="1"> <responsible id="19"/> <parent id="12"/> </task>
$no_xml