[PATCH v3 2/6] conf: modernize SEV XML parse and format methods