} else if (element instanceof Text || element instanceof Comment) {
Node n = (Node) element;
Element holder = doc.createElementNS(XindiceCollection.QUERY_NS, "xq:result");
holder.setAttribute(NodeImpl.XMLNS_PREFIX + ":xq", XindiceCollection.QUERY_NS);
holder.appendChild(doc.importNode(n, true));
if (expandSource && n instanceof DBNode) {
((DBNode) holder).setSource(((DBNode) n).getSource());
((DBNode) holder).expandSource();
}