- root = root->children;
- return ingest_sub_record(cl, xdoc, root, record_no, nmem, sdb);
+ for (root = root->children; root; root = root->next)
+ if (root->type == XML_ELEMENT_NODE)
+ {
+ r = ingest_sub_record(cl, xdoc, root, record_no, nmem, sdb,
+ &mergekey_norm);
+ if (r)
+ break;
+ }