Element p1 = (Element)p1n.get(i);
Element p2 = (Element)p2n.get(i);
XMLInserter xi = new XMLInserter(p1, "a", "b");
XMLSpanTagger.tagUpDocument(p2, "b");
xi.incorporateElementsFromRetaggedDocument(p2, "b");
xi.deTagDocument();
System.out.println(p1.toXML());
Nodes en = p1.query("ne/ne");
for(int j=0;j<en.size();j++) {
XOMTools.removeElementPreservingText((Element)en.get(j));