XML Generator

XML Generator

Postby Marc Venken » Sat Oct 30, 2021 6:04 pm

I also am in a project to generate a search XML files for a update search function from my shop.

The code that I have to generate from dbf data is like this :

For with functions/sample do I have to look ?

<?xml version="1.0" encoding="utf-8"?>
<items>
<item>
<id>235</id>
<title>Sapphire ATI Radeon HD5450 1GB</title>
<url><![CDATA[http://www.example.com/product?id=235]]></url>
<productcode>2346562</productcode>
<type/>
<categories>
<category>Computers</category>
<category>Hardware</category>
</categories>
<subcategories>
<subcategory>Videokaart</subcategory>
<subcategory>VGA</subcategory>
</subcategories>
<sizes>
<size>Small</size>
<size>Medium</size>
<size>Extra large</size>
</sizes>
<productbrandname/>
<eancode>4895106250475</eancode>
<text><![CDATA[Sapphire ATI Radeon]]></text>
<imageurl><![CDATA[http://www.example.com/ati.jpg]]></imageurl>
<price>30.00</price>
<from_price>40.00</from_price>
<shippingcosts>0.00</shippingcosts>
<sale>1</sale>
<orderurl><![CDATA[http://www.example.com/order/ati.htm]]></orderurl>
</item>
<item>
[..]
</item>
</items>
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1434
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 106 guests