DocumentInfo doc = wrapDocument(list.item(i), "", config);
NodeInfo node = wrapNode(doc, list.item(i));
nodes[i] = node;
}
}
return new SequenceExtent(nodes);
// Note, we accept the nodes in the order returned by the function; there
// is no requirement that this should be document order.
} else {
return null;