for //li/* mv text() replace . ; #### for //li/* { xmove (text()|*) after . ; rm . ; } #### for //li/* xmove (text()|*) replace . ;