Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Login user using xml as database(C#)

Avatar of Johny Bravo
Johny Bravo asked on
XML.NET ProgrammingASP.NET
3 Comments1 Solution420 ViewsLast Modified:
Hi Experts,
I am usign an XML file as database.I am storing Username and password in xml file(I know its a bad idea but I am not having any database option on my web server.).I am storing the user details in xml file at the time of registration,now I want to authenticate user against this xml file.
I am giving Sample xml here.I am getting my hands on xml, so I really appreciate your help how to login user using credential in xml file.

<customerList>
- <customer>
  <name>Johny</name> 
  <address>Canada</address> 
  <emailID>johny_bravo1@gmail.com</emailID> 
  <company>IT</company> 
  <country>Canada</country> 
  <contact /> 
  <comment /> 
  <registeredForNews>False</registeredForNews> 
  <product>False</product> 
  <Username>johny_bravo1@gmail.com</Username> 
  <Pwd>johy567</Pwd> 
  </customer>
- <customer>
  <name>Marshal</name> 
  <address>Canada</address> 
  <emailID>marshal_tweetu@gmail.com</emailID> 
  <company>XYZ</company> 
  <country>Canada</country> 
  <contact /> 
  <comment /> 
  <registeredForNews>False</registeredForNews> 
  <product>GWD Project</product> 
  <Username>marshal_tweetu@gmail.com</Username> 
  <Pwd>marsh544j</Pwd> 
  </customer>
- <customer>
  <name>sagar</name> 
  <address>Mumbai</address> 
  <emailID>sagar@gmail.com</emailID> 
  <company>Bitwise</company> 
  <country>India</country> 
  <contact /> 
  <comment /> 
  <registeredForNews>False</registeredForNews> 
  <product>HR mgnt</product> 
  <Username>sagar@gmail.in</Username> 
  <Pwd>skosag</Pwd> 
  </customer>
- <pages>
  <aboutUs>0</aboutUs> 
  <captiveServices>0</captiveServices> 
  <careers>0</careers> 
  <contact>0</contact> 
  <downloads>0</downloads> 
  <enquiry>0</enquiry> 
  <gwd>1</gwd> 
  <indiaSolution>0</indiaSolution> 
  <news>0</news> 
  <productEngineering>0</productEngineering> 
  <products>0</products> 
  <supportServices>0</supportServices> 
  <testimonials>0</testimonials> 
  </pages>
  </customerList>
ASKER CERTIFIED SOLUTION
Avatar of guru_sami
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers