Split function xmlDriver

Signed-off-by: Jérémy Jégou <jeremy.jegou@fr.airtag.com>