@Override protected void exportNode(String uri, String local, Node node) throws RepositoryException, SAXException { if ("jcr:system".equals(node.getName())) { // skip version history return; } super.exportNode(uri, local, node); } });
@Override protected void exportNode(String uri, String local, Node node) throws RepositoryException, SAXException { if (node.getDepth() == 0) { //don't include root node final NodeIterator iterator = node.getNodes(); while (iterator.hasNext()) { final Node child = iterator.nextNode(); super.exportNode(StringUtils.EMPTY, serializeKey(uri, child.getName()), child); //omit jcr: prefix for all child nodes } } else { super.exportNode(uri, serializeKey(uri, local), node); } }