Receiver out = destination.getReceiver(config);
out.setPipelineConfiguration(config.makePipelineConfiguration());
out = new NamespaceReducer(out);
TreeReceiver tree = new TreeReceiver(out);
tree.open();
tree.startDocument(0);
for (Iterator<XdmItem> it = value.iterator(); it.hasNext();) {
XdmItem item = it.next();
tree.append((Item)item.getUnderlyingValue(), 0, NodeInfo.ALL_NAMESPACES);
}
tree.endDocument();