fixed xml vs xmlns declaration handling