Use EOQ tags instead of XML? An example: https://github.com/discoverygarden/islandora_scholar/blob/7.x/modules/islandora_scholar_embargo/includes/embargo.inc#L334-L342.