Hello All,
I have a form which has embeded XML data. I would like to loop through all the nodes and delete all those nodes except one which is present in the original form. Let me explain.
Suppose I have a dropdown called ItemNumber. Basing upon the ItemNumber I have several other associated fields like ItemName,ItemCode,ItemPrice etc.
All these data are embeded in the form as XML.
Suppose the user selects ItemNumber- 30 ..And based upon that all the associated fields like ItemName 30, ItemCode30,ItemPrice30 are updated.
Now What I want is : I would like to loop through all the nodes present in the embeded xml and delete those nodes except node 30.
So that, when the user clicks the submit as xml only the node 30 data goes.
I hope I am clear in explaining what I want. Anybody here could help me on this ?? I am working under a deadline .Please help me .
Thanks.
Bibhu.