editLib.fillElement(schema, child, orChild);
}
}
}
else {
child = editLib.addElement(mds, el, name);
}
//--- now enumerate the new child (if not a simple attribute)
if (childName == null || !childName.equals("geonet:attribute")) {
//--- now add the geonet:element back again to keep ref number
el.addContent(refEl);