I have a tag in xml like
<Radio values="Husband~Husband|Wife~Wife|Son~Son|Daughter~Daughter|Father~Father|Mother~Mother"></Radio>
Now I have to split the attribute into Husband, Wife, Son, Daughter, Father, Mother
and use each one as a value for the value
attribute in <input type = "radio" value = "<the value i get from the list>" />
Can anyone give me an idea how to achieve this?