def _convert_xml_to_retention_policy(xml, retention_policy):
<EOL>retention_policy.enabled = _bool(xml.find('<STR_LIT>').text)<EOL>days_element = xml.find('<STR_LIT>')<EOL>if days_element is not None:<EOL><INDENT>retention_policy.days = int(days_element.text)<EOL><DEDENT>
<Enabled>true|false</Enabled>
<Days>number-of-days</Days>