JDP
New member
- Joined
- Sep 19, 2006
- Messages
- 2
- Programming Experience
- Beginner
Hello, simple question how can I best read in the XML below? I've tried several different ways, it either doesn't work or errors out on me. I've found a way that works, but I need to completely change my xml config, which I don't want to do. Thanks in advance!
Basically, I'm trying to read this in, and for each client perform another action. It shouldn't be this tough - but I'm a rookie in general and even more so when it comes to xml handling.
VB.NET:
<?xml version="1.0" encoding="utf-8"?>
<config>
<client name="MyClient">
<url>/myurl/location/</url>
<webservers>
<serverpath>C:\Program Files\etc\etc\etc</serverpath>
<logType>IIS</logType>
<server>SERVER01</server>
<server>SERVER02</server>
</webservers>
</client>
<client name="Another Client">
<url>/client/stats/</url>
<webservers>
<serverpath>C:\Program Files\etc\etc\etc</serverpath>
<logType>IIS</logType>
<server>SERVER201</server>
<server>SERVER333</server>
</webservers>
</client>
</config>