artefactual-labs / mets-reader-writer

Library to parse and create METS files, especially for Archivematica.
https://mets-reader-writer.readthedocs.io
GNU Affero General Public License v3.0
20 stars 13 forks source link

Ignore XML comments on PREMIS elements parsing #98

Closed replaceafill closed 1 year ago

replaceafill commented 1 year ago

XML comments break parsing of PREMIS:OBJECT elements in the METS because lxml doesn't create etree.Element objects for them.

This just ignores them since they don't add any value to the resulting tuples.

Connected to https://github.com/archivematica/Issues/issues/1277