fixed xml printing of result. Till now attributes are only printed if theyre element are also wanted as result.