html
php
iphone
c
xml
ajax
python
linux
xcode
ruby-on-rails
multithreading
flash
perl
algorithm
facebook
tsql
delphi
apache
asp
postgresql
SenderInfo should be a Dictionary<String,String>. Here's the documentation and example code, at the bottom, including VB.NET.
SenderInfo
Dictionary<String,String>
It's hard to be sure right now what you want to do with this code, and that can make all the difference in the world for what I would recommend to do instead. But it sounds like you really want a class like this:
<Serializable()> Public Class Sender Public Property Name Public Property Address1 Public Property City Public Property State End Class
And then replace your existing code with something like this:
Dim xmlRdr As New Xml.Serialization.XmlSerializer(GetType(Sender)) Using fileStream As New StreamReader(fName) Dim mySender As Sender = xmlRdr.Deserialize(fileStream) End Using
You'll probably need a few more attributes in the class to tweak what the deserializer expects the xml to look like. You can read more about serialization here: http://msdn.microsoft.com/en-us/library/ms950721.aspx