XML for dummies



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


Anyone with any info where to get started? XML for delphi dummies?????


--
Steve Warburton
0161 217 2200
07760 164990
Stevew@xxxxxxxxxxxxx


.



Relevant Pages

  • Re: XML data reading
    ... XML for delphi dummies????? ... Is there a way to display the data the same way as ... The shopping cart has a cumbersome web interface to update ...
    (borland.public.delphi.thirdpartytools.general)
  • 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 ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: XSD to Pascal Objects?
    ... only for Delphi users, and Delphi users of XML at that, we're talking about ... A recordset field can be another, ... Then, when you save the top-level recordset as an XML file, it saves ... got my read/write hierarchical data structure. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Those requirements just get weirder :-)
    ... >> programming ability between individuals, something of the order of 10:1 ... and Ian is right in anothe respect - what does four years ... except Delphi, but all the rest I can make work to a more than acceptable level. ... Now I'm writing stuff in C# against a MySQL database with XML, ...
    (uk.consultants)
  • Re: XML stylesheet editor
    ... look for XML). ... > dataset in Word using stylesheet .dot). ... Is there a native Delphi VCL component or Axtivex ...
    (borland.public.delphi.thirdpartytools.general)