Nexml2Nexson class, and cleaning