| | |
Search users(string) in XML
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2009
Posts: 25
Reputation:
Solved Threads: 0
I have generated an XMl which goes like this -
Now, I want to login using this XML, so it should search for the <name> element. How can it be done>
Thanks,
Aditi
xml Syntax (Toggle Plain Text)
<?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
Last edited by peter_budo; Jan 14th, 2009 at 7:20 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
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.
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.
![]() |
Similar Threads
- Programming FAQ - Updated 1/March/2005 (Computer Science)
- 100% CPU usage & hardware interrupts.......2 (Viruses, Spyware and other Nasties)
- Search Extender (Viruses, Spyware and other Nasties)
- starware popups and redirect (Viruses, Spyware and other Nasties)
- IPB vs. phpBB (Growing an Online Community)
- I Cannot Delete, Move, or Rename a File On My PC. (Viruses, Spyware and other Nasties)
- Trojan Horse Downloader.small.44.bw & 44.j (Viruses, Spyware and other Nasties)
- How can I delete Hosts: 1159680172 auto.search.msn.com? (Viruses, Spyware and other Nasties)
- JAVA OPENSTR.A & Trojan.ByteVerify (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: Radiobuttonlist event doesn't fire..
- Next Thread: monitor file access
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax appliances asp asp.net beginner box browser businesslogiclayer button c# c#gridviewcolumn cac checkbox class compatible confirmationcodegeneration content contenttype control countryselector courier css dataaccesslayer database datagrid datagridview datalist deadlock deployment development dgv dialog dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv forms gridview gudi homeedition iis javascript jquery list listbox menu mssql multistepregistration nameisnotdeclared news novell objects opera order problem radio ratings redirect registration relationaldatabases reportemail rotatepage search security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server ssl tracking treeview validatedate validation vb.net videos virtualdirectory vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopment webprogramming wizard xml xsl





