def _convert_retention_policy_to_xml(retention_policy, root):
<EOL>ETree.SubElement(root, '<STR_LIT>').text = str(retention_policy.enabled)<EOL>if retention_policy.enabled and retention_policy.days:<EOL><INDENT>ETree.SubElement(root, '<STR_LIT>').text = str(retention_policy.days)<EOL><DEDENT>
<Enabled>true|false</Enabled>
<Days>number-of-days</Days>