0

I have generated an XMl which goes like this -

<?xml version="1.0" encoding="utf-8"?>
<users>
  <user>
    <name>aditi</name>
    <password>A802CEDA2B04377E3265FC30C3D7CE9F4FADBEA0</password>
    <firstname>aditi</firstname>
    <lastname>aditi</lastname>
    <usertype>1</usertype>
  </user>
  <user>
    <name>aditi</name>
    <password>A802CEDA2B04377E3265FC30C3D7CE9F4FADBEA0</password>
    <firstname>aditi</firstname>
    <lastname>aa</lastname>
    <usertype>1</usertype>
  </user>
  <user>
    <name>aditi</name>
    <password>6C8C90F3860019AB48FDFC3F7541291B333B7B4B</password>
    <firstname>aditi</firstname>
    <lastname>aa</lastname>
    <usertype>1</usertype>
  </user>
</users>

Now, I want to login using this XML, so it should search for the <name> element. How can it be done>

Thanks,
Aditi

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by sedgey
0

What you ask is possible and you could use LINQ to achieve it, by running a LINK query on your XML document. The question is should you do this?

The Web.config file was designed to hold this kind of data and also to protect it, keeping your login data like this could be a security risk for your application.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.