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='' 
url='' />
<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?