I have an XML document as below:
<?xml version="1.0" encoding="utf-8" ?>
<Providers>
<Provider>
<ProviderType>Email</ProviderType>
<ProviderTitle>MyProviderTitle</ProviderTitle>
<DeliveryRules>
<PersonalDelivery>true</PersonalDelivery>
</DeliveryRules>
<ProviderConfiguration>
<SendTo>
<Address>myEmailAddress</Address>
<Address>myEmailAddress</Address>
</SendTo>
</ProviderConfiguration>
</Provider>
<Provider>
<ProviderType>Email</ProviderType>
<ProviderTitle>MyProviderTitle</ProviderTitle>
<DeliveryRules>
<PersonalDelivery>true</PersonalDelivery>
</DeliveryRules>
<ProviderConfiguration>
<SendTo>
<Address>myEmailAddress</Address>
<Address>myEmailAddress</Address>
</SendTo>
</ProviderConfiguration>
</Provider>
</Providers>
Now when I pull this into a dataset using:
DataSet dsConfiguration = new DataSet();
dsConfiguration.ReadXml("myfile.xml"));
How can I iterate through providers?