I need to know how to split the below string.
var temp:String = "The Mannadis or Kunnuvans are the principal owners of the village <source> lands on the Palni Hills</source><name><prefix>Mr.</prefix>
<given-names>kamesh</given-names> <surname>waran</surname> <suffix>Sr.</suffix> </name><string-name>Bala</string-name> The Mannadis or Kunnuvans are the principal owners of the village";
i need to have the above string to be converted like below
source = lands on the Palni Hills
prefix = Mr.
given-name = kamesh
surname = waran
and so on.
Please advise me how to do this.
convert to xml and parse it:
var xmlS:String = "<root>"+temp+"</root>";
var xml:XML=new XML(xmlS):