How to convert String type variable content to xml format

Hi guys, I’ve started learning UIPath recently. I’ve got an exercise to Get by attribute whole html document or just body content and then convert it to xml format and save in file. I’ve encountered a problem when itcomes to converting to xml. I’m getting attibute strict selector like this:

 <html app='chrome.exe' title='https://przegladarka-ekw.ms.gov.pl/eukw_prz/KsiegiWieczyste/pokazWydruk' 
url='https://przegladarka-ekw.ms.gov.pl/eukw_prz/KsiegiWieczyste/pokazWydruk' />
<webctrl css-selector='html' tag='HTML' />
<webctrl tag='BODY' />

And inputting attribute “innerhtml”, then saving it to variable to String format.
Can you suggest me how can I convert that to xml format and save it to file?