Adds inlining option to #to_xml.