Change nodeset to array