add options to xml builder

and add default options