switch xml