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