add nb-nodeset-to-xml helper