1 Reply Latest reply on Dec 17, 2010 3:05 PM by kglad

    Spliting string

    A.kameshwaran

      Hi,

       

           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.