How can I go through all child nodes and attributes of child nodes of a parent node.. [modified]
-
Hello every one.. There is a little problem of xml..? How can I go through all child nodes and attributes of child nodes of a parent node.. Suppose i have to go through all child nodes e.g. of parent nodes e.g.. There can be mutiple in a parent node . I have to check values of and of all child nodes and if it matches with the supplied valus it gives a message 'LinkUrl/LinkText already exist' else insert new of and set all attributes of , which was supplied by the user. My code check only first child of if it values matches for and give a proper message else insert new . So how can I check all child for values and of This is a sample struture of my XML file -------------------------- 0 1.0.1 2007-11-13T12:48:29.9687500+05:30 SUBHASH\vishnu C:\Documents and Settings\Login Subhash\Desktop\iframe.html HTML Help File 3 2007-11-13T13:04:40.2656250+05:30 SUBHASH\vishnu C:\Documents and Settings\Login Subhash\Desktop\main.html Adding new Help Link 3 //can be same for two or more childs .... ..... ----------------------------- following is my code.. please reply me soon sir .. i will very thankful for that.. ----------------------------- int intRefId = Convert.ToInt32(Request.QueryString["RefId"]); string strFilePath = FileUpload.PostedFile.FileName; string strXPath = "/LinkInformation/Sc