//--- now add the geonet:element back again to keep ref number
el.addContent(refEl);
int iRef = editLib.findMaximumRef(md);
editLib.expandElements(schema, child);
editLib.enumerateTreeStartingAt(child, iRef+1, Integer.parseInt(ref));
//--- add editing info to everything from the parent down
editLib.expandTree(mds,el);
}