//look for a nested mapping based on the Root's QName
XMLRoot root = (XMLRoot)value;
for(DatabaseField next:this.fields) {
XMLField xmlField = (XMLField)next;
XPathFragment fragment = xmlField.getXPathFragment();
while(fragment != null && !fragment.nameIsText()) {
if(fragment.getNextFragment() == null || fragment.getHasText()) {
if(fragment.getLocalName().equals(root.getLocalName())) {
String fragUri = fragment.getNamespaceURI();
String namespaceUri = root.getNamespaceURI();
if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {