Hi Bharathi dhasan, You just loop (using FOR loop) the list of child nodes of 'class' node and if the current node id value is equal to the next sibling node's id value then delete that next sibling node. But you also need to check next sibling node is not null.
- Manikandan On Sun, Dec 30, 2012 at 10:41 AM, Bharathi dasan <[email protected]>wrote: > > Hi Friends, > > I need your help.At present I am working with xml and display it in > advance Data Grid. My raw xml looks like this > > <school id="4"> > <class id="2"> > <node id="1" label="class1" value="ragu"/> > <node id="1" label="class1" value="malik"/> > <node id="1" label="class1" value="amit"/> > <node id="3" label="class2" value="sanjay"/> > </class > > </school > > > I want to delete the children(node) with same id(@id) and append it to > single node like below. > > <school id="4"> > <class id="2"> > <node id="1" label="class1" value="ragu,malik,amit"/> > <node id="3" label="class2" value="sanjay"/> > </class > > </school > > > Friends i tried all methods but i cannot get it correctly.I possible pls > share code. > > Thanks in advance > -- > *Thanks & Regards,* > *Bharathidasan.S.* > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

