Hi,
I am new to VB.NET and to XML files. Can anyone please help me in parsing the xml file of format mentioned below in VB.NET
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Table>
<Product>
<Product_id value="1"/>
<Product_name value="Product 1"/>
<Product_price value="1000"/>
</Product>
<Product>
<Product_id value="2"/>
<Product_name value="Product 2"/>
<Product_price value="5000"/>
</Product>
</Table>
I am able to parse the data using following format
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Table>
<Product>
<Product_id>1</Product_id>
<Product_name>Product 1</Product_name>
<Product_price>1000</Product_price>
</Product>
<Product>
<Product_id>2</Product_id>
<Product_name>Product 2</Product_name>
<Product_price>2000</Product_price>
</Product>
<Product>
<Product_id>3</Product_id>
<Product_name>Product 3</Product_name>
<Product_price>3000</Product_price>
</Product>
<Product>
<Product_id>4</Product_id>
<Product_name>Product 4</Product_name>
<Product_price>4000</Product_price>
</Product>
</Table>
But this format will not help me.
Thanks.