pothuri Posted December 2, 2003 Posted December 2, 2003 hi I have converted the data in the dataset into xml file. then i am trying to search a word (text1.value) in the xml file by the following statement in loop which increment i & j myxml.Document.DocumentElement.ChildNodes.Item(i).ChildNodes.Item(j).InnerText.IndexOf(Text1.Value) But it gives me an error Object reference not set to an instance of an object When i use actual integer values like 1,2 instead of the variables i & j .i.e ITEM(1) instead of ITEM(j) in the above statement....am able to get the result. how should i fix this problem thanks Quote
pothuri Posted December 2, 2003 Author Posted December 2, 2003 i fixed the problem ignore the post thanx Quote
Mehyar Posted December 2, 2003 Posted December 2, 2003 It would be better if you post how you fixed it, so that other users on the site can benefit from what you have done... Quote Dream as if you'll live forever, live as if you'll die today
pothuri Posted December 2, 2003 Author Posted December 2, 2003 its a very silly mistake i did. the i and j values were going out of bounds of the array index while in the loop. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.