XML help !
-
Hello, Thank you for reading. Here is my situation. I have a web service that takes as input user name and password, that returns an xml document..if all credentials match the document contains info about the user something like this 123456 Tester Abc Tester Abc else it has Invalid Login when I get the xml document in my application, how can I check if is present in the xml document? Also I want to get the value of the error as string. Please Help RH
-
Hello, Thank you for reading. Here is my situation. I have a web service that takes as input user name and password, that returns an xml document..if all credentials match the document contains info about the user something like this 123456 Tester Abc Tester Abc else it has Invalid Login when I get the xml document in my application, how can I check if is present in the xml document? Also I want to get the value of the error as string. Please Help RH
-
open the xml file using XMLDocument something like this..
XMLDocument doc = new XMLDocument(); doc.Load(xmlfilenamewithpath); XMLNode node = doc.DcoumentElement.SelectSingleNode("Root/Error"); string err; if(node != null) err = node.InnerText;
-----
thank you !!!!