Move code about nxml