metafacture/metafacture-core

Make namespace check for decode-xml optional

TobiasNx opened this issue · 4 comments

dr0i commented

Why do you think this is a bug? The problem relies in the using of a namespace without defining one. I.e. the error lies in the input data.

Why do you think this is a bug? The problem relies in the using of a namespace without defining one. I.e. the error lies in the input data.

You are right, but you cannot handle this data at all with MF. I would not say this is a bug, but to make this optional would be a feature. This would be similar to the option ignoreId from handle-marcxml

dr0i commented

There is always a way - until it isn't. Could you not filter the whole input first (treat it as a string) and use a regex that would remove the erroneous namespace?