Hi,
I am designing a site for a medium sized company who make cement render products. The product catalog is only going to be approximately 25 products long and I have decided to store this information in an XML file to negate the need for a database.
I have never used XML before and I am wondering if it is possible to use ASP (Classic) to parse through the file and select a node that contains the information about the product. The product Id will be bassed via a querystring. An example of the XML file is below:
<?xml version="1.0" encoding="iso-8859-1"?>
<ProdCat>
<Product Id=1>
<ProdName><h3>Supa Coat PM150 Whiteset</h3></ProdName>
<ProdDesc>PM150 Whiteset is a high quality lime and gypsum based plaster.</ProdDesc>
<ProdUse>PM150 is for internal use only.</ProdUse>
<ProdApp>PM150 Whiteset can be applied from 4mm to 25mm in thickness in one coat. It can also be textured or sponged.</ProdApp>
<ProdColour>PM150 is a white plaster but can be altered to any colour you desire.</ProdColour>
<ProdNote>* All coloured products have a minimum turnaround of 3 days *
</Product>
</ProdCat>
I would like to be able to select all the data in the Product node and then use ASP to place the other information into a preset template.
Is that even possible?
Also this is the first XML file I have written, is it right? Is there a better way to set it out?
All comments are appreciated!
Thanks,
Luke.
I am designing a site for a medium sized company who make cement render products. The product catalog is only going to be approximately 25 products long and I have decided to store this information in an XML file to negate the need for a database.
I have never used XML before and I am wondering if it is possible to use ASP (Classic) to parse through the file and select a node that contains the information about the product. The product Id will be bassed via a querystring. An example of the XML file is below:
<?xml version="1.0" encoding="iso-8859-1"?>
<ProdCat>
<Product Id=1>
<ProdName><h3>Supa Coat PM150 Whiteset</h3></ProdName>
<ProdDesc>PM150 Whiteset is a high quality lime and gypsum based plaster.</ProdDesc>
<ProdUse>PM150 is for internal use only.</ProdUse>
<ProdApp>PM150 Whiteset can be applied from 4mm to 25mm in thickness in one coat. It can also be textured or sponged.</ProdApp>
<ProdColour>PM150 is a white plaster but can be altered to any colour you desire.</ProdColour>
<ProdNote>* All coloured products have a minimum turnaround of 3 days *
</Product>
</ProdCat>
I would like to be able to select all the data in the Product node and then use ASP to place the other information into a preset template.
Is that even possible?
Also this is the first XML file I have written, is it right? Is there a better way to set it out?
All comments are appreciated!
Thanks,
Luke.
Comment