Wie sieht eine XML-Datei aus?

Aus Wiki.zanox.com

Wechseln zu: Navigation, Suche

Eine Produktdatendatei im XML-Format könnte folgendermaßen aussehen:

<?xml version="1.0" encoding="utf-8"?>
<products xmlns="http://zanox.com/productdata/exportservice/v1" xmlns:xsi=http://www.w3.org /2001/XMLSchema-instance 
xsi:schemaLocation="http://zanox.com/productdata/exportservice/v1 http://productdata.zanox.com/exportservice/schema/export-1.0.xsd">
 <product zupid="a443c4be993c32b040ea6dafd6032a614e1f12334225">
    <name>Starthilfekabel 16 mm²</name>
    <program>1841</program>
    <number>AB0007</number>
    <shortDescription>Sicherheits-Starthilfekabel</longDescription>
    <price>14.99</price>
    <shippingHandling>1-2 Werktage</shippingHandling>
    <shippingHandlingCost>4.98</shippingHandlingCost>
    <lastModified>2009-10-30T10:29:00</lastModified>
    <currencyCode>EUR</currencyCode>
    <zanoxCategoryIds><id>10000</id></zanoxCategoryIds>
 </product>
</products>

Das XML-Schema finden Sie unter folgender URL: http://productdata.zanox.com/exportservice/schema/export-1.0.xsd

Beachten Sie: Falls nötig, können Sie die XML-Datei mit Hilfe gängiger Transformationssprachen (z.B. XSLT) transformieren.


Umfangreiche Informationen zum Produktdaten-Download inklusive einer PDF-Dokumentation finden Sie hier.

Image:Tipp.png

 
Persönliche Werkzeuge
<>