Stored UserName and Password in XML?

This code used to write a simple xml like stored the username and password





Dim text1 As String = "karthik"
Dim text2 As String = "test"
Dim xmldoc As New System.Xml.XmlDocument
Dim strbuilder As New System.Text.StringBuilder
strbuilder.Append("")
strbuilder.Append("")
strbuilder.Append(text1)
strbuilder.Append("
")
strbuilder.Append("")
strbuilder.Append(text2)
strbuilder.Append("
")
strbuilder.Append("
")
xmldoc.LoadXml(strbuilder.ToString)
xmldoc.Save("C:\test1.xml")



Comments

Author: Nisar10 Apr 2009 Member Level: Gold   Points : 1

Hey its a good piece of code but can you tell me why we required to store data in XML, sorry to ask this kind of question but XML usage is not clear in my mind
Thanks

Author: bajibabusk20 Apr 2009 Member Level: Gold   Points : 1

Hi
its really store user name and password in xml.
any send me more XML codes

Thanks and regards
bajibabu



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: