Extract metadata information from XML file.