My Xml file looks like this.
<?xml version="1.0" encoding="utf-8" ?>
<Test1>
<Product Name="Test1" Value="10">
<Catagory>
<CatagoryType Value="20">AAA</CatagoryType>
<CatagoryType Value="22">BBB</CatagoryType>
<CatagoryType Value="23">CCC</CatagoryType>
<CatagoryType Value="25">DDD</CatagoryType>
</Catagory>
<Type>
<TypeName Value="11">111</TypeName>
<TypeName Value="12">222</TypeName>
<TypeName Value="13">333</TypeName>
<TypeName Value="14">444</TypeName>
</Type>
<Location>
<Area Value="0">Inside</Area>
<Area Value="1">OutSide</Area>
<Area Value="2">NoWhere</Area>
</Location>
</Product>
<Product Name="Test2" Value="10">
<Catagory>
<CatagoryType Value="20">EEE</CatagoryType>
<CatagoryType Value="22">FFF</CatagoryType>
<CatagoryType Value="23">GGG</CatagoryType>
<CatagoryType Value="25">HHH</CatagoryType>
</Catagory>
<Type>
<TypeName Value="11">555</TypeName>
<TypeName Value="12">666</TypeName>
<TypeName Value="13">777</TypeName>
<TypeName Value="14">888</TypeName>
</Type>
<Location>
<Area Value="0">Inside</Area>
<Area Value="1">OutSide</Area>
<Area Value="2">NoWhere</Area>
</Location>
</Product>
</Test1>
I am trying to make which you can select a Product in a drop down. Then based on the product, get a category in another dropdown. Then Type in another, and location in the last. I have been able to get the Products to show in a drop down. But not able to get the rest of the elements in based on the product.
My code to load products into a drop down:
XmlDataset.ReadXml(Server.MapPath("XmlFile1.xml"));
drpProducts.DataSource = XmlDataset.Tables["Product"];
drpProducts.DataTextField = "Name";
drpProducts.DataValueField = "Value";
drpProducts.DataBind();
I cannot figure the next steps. How would I go about doing it?

