ValueIterator.toArray() as Value[]
[DEPRECATED: Only available for type checking; use Sequence instead.] Return an array containing the values in the value iterator.
// Get the lines of a song const node = cts.doc("song.xml"); node.xpath(".//LINE").toArray();