XML data reading



We have just playing around with a new web based shopping cart and the data
is stored in xml. Is there a way to display the data the same way as a
dataset.

ie with master details links.

There are the following files:

categories.xml
<?xml version="1.0" encoding="UTF-8" ?>
- <category>
<category category_id="undefined" category_name="Steriex"
category_description="desc for 4"
category_pagestyle="default_category_style" category_image="Image_002.JPG"
category_order="4" />
<category category_id="3" category_name="Cartoons"
category_description="Cartoon" category_pagestyle="default_category_style"
category_image="Image_002.JPG" category_order="3" />
<category category_id="undefined" category_name="undefined"
category_description="undefined" category_pagestyle="undefined"
category_image="undefined" category_order="undefined" />
<category category_id="2" category_name="King 1"
category_description="Description Unavailable."
category_pagestyle="default_category_style" category_image="Image_001.JPG"
category_order="2" />
<category category_id="1" category_name="Prk 1"
category_description="Category 1 description..."
category_pagestyle="default_category_style" category_image="Image_002.JPG"
category_order="1" />
</category>

subcategories.xml

<?xml version="1.0" encoding="UTF-8" ?>
- <subcategory>
<subcategory subcategory_id="3" subcategory_name="Park sub 2"
subcategory_category_id="1" subcategory_desc_cat="Park sub 2"
subcategory_desc_subcat="undefined" subcategory_pagestyle="undefined"
subcategory_image_cat="Image_002.JPG" subcategory_image_subcat="undefined"
subcategory_order="3" />
<subcategory subcategory_id="2" subcategory_name="King Subcategory Name"
subcategory_category_id="2" subcategory_desc_cat="Short Description
Unavailable." subcategory_desc_subcat="Long Description Unavailable."
subcategory_pagestyle="default_subcategory_style"
subcategory_image_cat="noimage.jpg" subcategory_image_subcat="noimage.jpg"
subcategory_order="2" />
<subcategory subcategory_id="1" subcategory_name="Park Subcategory 1"
subcategory_category_id="1" subcategory_desc_cat="Subcategory 1 short
description..." subcategory_desc_subcat="Subcategory 1 long description..."
subcategory_pagestyle="subcategory_default"
subcategory_image_cat="Image_002.JPG" subcategory_image_subcat="noimage.jpg"
subcategory_order="1" />
</subcategory>

store.xml
<?xml version="1.0" encoding="UTF-8" ?>
- <inventory>
<inventory sku="Cartoon1" status="available" name="First cartoon"
price="222" shipping1="0" shipping2="0" handling="0" description="First
cartoon" discount="0" image_small="none" image_small_scale="scale"
image_medium="none" image_medium_scale="scale" image_large="none"
image_large_scale="scale" options1="option1|option label,1.00,none,1|option
label,2.00,none,2|option label,3.00,none,3" options2="" options3=""
weight="0" category_id="3" subcategory_id="0" media="undefined"
file="undefined" />
<inventory sku="Park1" status="available" name="Park 2" price="9.99"
shipping1="0" shipping2="0" handling="0" description="Description
unavailable." discount="1" image_small="none" image_small_scale="scale"
image_medium="none" image_medium_scale="scale" image_large="none"
image_large_scale="scale" options1="" options2="" options3="" weight="0"
category_id="1" subcategory_id="1" media="undefined" file="undefined" />
<inventory sku="demo-1" status="available" name="Parkforce solution"
price="34.95" shipping1="0" shipping2="0" handling="0"
description="Description unavailable." discount="5.00"
image_small="Image_002.JPG" image_small_scale="scale"
image_medium="Image_002.JPG" image_medium_scale="scale" image_large="none"
image_large_scale="scale" options1="" options2="" options3="" weight="0"
category_id="1" subcategory_id="1" media="" file="" />
</inventory>


I am presuming this is some form of chinese dialect....

Joking apart... The shopping cart has a cumbersome web interface to update
data so I need to write a 'Delphi' app to allow editing the data.

Cheers

SteveW


.



Relevant Pages

  • XML for dummies
    ... We have just playing around with a new web based shopping cart and the data ... Is there a way to display the data the same way as a ... XML for delphi dummies????? ...
    (borland.public.delphi.thirdpartytools.general)
  • Add a Row to DataGrid
    ... Working on a shopping cart app. ... page with boundcolumns to display Product name, cost, quantity etc - that ... display cart total, so I'd end up with something like this ... Product Cost Quantity Sub Total ...
    (microsoft.public.dotnet.framework.aspnet)
  • FOR EACH - NEXT SubTotal Calculation
    ... item is in the user's shopping cart. ... I try and display the subtotal and add a count of each item in the ... Here is the snippet of code for my loop: ... Dim MyCookie as new httpCookie ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to access contents of cells within a generated table?
    ... >I am writing a custom control to display the contents of a shopping cart ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Add a Row to DataGrid
    ... "Jon" wrote in message ... I'm using a datagrid on the shopping cart ... > display cart total, so I'd end up with something like this ...
    (microsoft.public.dotnet.framework.aspnet)