I'm trying to turn a product table into an XML file to create an
heirarchical menu, and I was wondering if there was any easy way to do
this. The table is (simplified) below:
Create table product(
category varchar,
subcategory varchar,
name varchar)
and I want the XML to represent the category structure as below:
<Categories>
<sucategories >
<products>
.....
</products>
</subcategories>
</Categories>
Thanks,
John
heirarchical menu, and I was wondering if there was any easy way to do
this. The table is (simplified) below:
Create table product(
category varchar,
subcategory varchar,
name varchar)
and I want the XML to represent the category structure as below:
<Categories>
<sucategories >
<products>
.....
</products>
</subcategories>
</Categories>
Thanks,
John
Comment