if (ElementAttr.Value=="nlbterms:Collections") { string strtmpCol=""; strtmpCol=objNode.InnerText; int r = 0; r=strtmpCol.IndexOf("~",0,strtmpCol.Length); if (r!=-1) { string [] arrCollection = strtmpCol.Split("~",strtmpCol.Length); string [] newarrCollect; for (int collectCount=0;collectCount { string strArrCollection = arrCollection[collectCount]; if (newarrCollect.Length ==0) { newarrCollect.SetValue(strArrCollection,collectCount); } { int r1 =0; r1 = strtmpCol.IndexOf("~",0,strtmpCol.Length); } } } string [] arrCollection = strtmpCol.Split(new Char []{'~'},strtmpCol.Length); string [] newarrCollect = RemoveDupsSp(arrCollection); early it was using the below hardcode syntax which take only single value when i get value like 10100~10200 or 10100~10100 it cant able to display the data if we get value like 10100~10100 then it show display general same we we get value like 10100~10200~10400 then it show display general | Reference | Exclusive and if i get value like 10100~10100~10200 then it show display like general | referenc..etc { if (strtmpCol.Trim()=="10100") relation_ispartofCol = "General"; if (strtmpCol.Trim()=="10200") relation_ispartofCol = "Reference"; if (strtmpCol.Trim()=="10400") relation_ispartofCol = "Exclusive"; //Final Storage of relation_ispartof sData[29] = "Collection:" + relation_ispartofCol + "~URL:" + relation_ispartofURL + "~DOI:~" + relation_ispartof;