open metadata.xml in binary mode