This is general utility function for `lxml` library. Please find better place in `invenio.utils.*`. Thanks