Added clone function to xml2json

Signed-off-by: Michel <info@1st-setup.nl>