Both PNG and XML formats are used for so many purposes, it's hard to give answer to exact nature of png to xml conversion and how to do this.
Said that, one of the commonly searched things is recovery of music sheets from exported images and saving these in MusicXML format. For this you will need a special OMR solution, software that can read/recover music notations from images.
Updated: September 13, 2023