I have scanned a image using my iphone and get the below type result.
<?xml version="1.0" encoding="UTF-8"?>
<PrintLetterBarcodeData uid="229636134720" name="Nandan Mohan Nilekani" gender="M"
yob="1955" house="856, 13th Main , 3rd Block" loc="Koramangala" vtc="Bangalore South"
po="Koramangala" dist="Bangalore" state="Karnataka" pc="560034"/>
How can best way to split or parse the above xml data.
Please check this code
Output: {
dist = Bangalore;
}