((NodeInfo)next).copy(tree, NodeInfo.ALL_NAMESPACES, true, 0);
tree.endElement();
break;
case Type.PROCESSING_INSTRUCTION:
tree.startElement(resultPI, -1, 0, 0);
tree.startContent();
((NodeInfo)next).copy(tree, NodeInfo.ALL_NAMESPACES, true, 0);
tree.endElement();
break;
case Type.NAMESPACE:
tree.startElement(resultNamespace, -1, 0, 0);