How to convert PNG to XML file?

I just want to create block image with xml code
XML to Block.png
I couldn’t find the source.

Sorry, At first, I created the subject in that direction to research it myself.