I have googled for the last hour or so with no luck (I\'d like to think I\'m a great googler too!), so here I am.
I have an XML file that I\'m using for my programs sett
Here's a Console app using the VB.Net XML Literal support.
Module Module1
Sub Main()
Dim xElem =
0323
address
phone
emailfrom
pass
received
smtp.gmail.com
587
true
package received
path
Dim number = xElem...Value
Dim emailbody = xElem...Value
Console.WriteLine(String.Format("Number={0}", number))
Console.WriteLine(String.Format("emailbody={0}", emailbody))
Console.ReadLine()
'--- What it'd look like if you loaded from a file using XDocument.Load
Dim xDoc = XDocument.Load(New IO.StringReader(xElem.ToString))
number = xDoc.Root...Value
emailbody = xDoc.Root...Value
Console.WriteLine(String.Format("Number={0}", number))
Console.WriteLine(String.Format("emailbody={0}", emailbody))
Console.ReadLine()
End Sub
End Module
The results will be:
Number=0323 emailbody=package received Number=0323 emailbody=package received