public static String getXmpXml(final File file) throws ImagingException, IOException {
        return getXmpXml(ByteSource.file(file));
    }
Extracts the embedded XML metadata as an XML string.

@param file File containing image data.
@return Xmp Xml as String, if present. Otherwise, returns null.
@throws ImagingException if it fails to parse the image
@throws IOException      if it fails to read the image data
src/main/java/org/apache/commons/imaging/Imaging.java