tags:

views:

37

answers:

0

I've following XMLList ,

<party/> <party/> <party/> <party>A</party> <party>B</party> <party>C</party> <party>A</party> <party>B</party> <party>C</party> <party>D</party> <party>E</party> <party>D</party> <party>A</party> <party/> <party>C</party>

I would like eliminate blank node and to make an ArrayCollection like ( with count of individual party),

tArr = new ArrayCollection([ {Party:"A", Count:3}, {Party:"B", Count:2}, {Party:"C", Count:3}, {Party:"D", Count:2}, {Party:"E", Count:1}, ]);

Thanks in advance.