roughly implement XML parser with params for set