KDK-Alli/RecordManager — pull request #2 by EeroHeikkinen (2012-03-02 14:15:30+00:00)
Title: Support for metadata which uses namespaces

The XML library SimpleXML used by RecordManager can't process XML data which uses namespaces unless it's explicitly supplied with the correct namespace. Currently trying to harvest such data results in the message "No metadata found for record".

This update tries to guess the right namespace by calling [SimpleXMLElement::getNamespaces](SimpleXMLElement::getNamespaces) and retrying processing on any records which seem to be empty.

If however strict enforcing of namespaces is desired, then a more fine-grained solution would be needed.