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);
}
//--- attach the info element to the child
child.addContent(info);