Standard XML format for Google Base



<?xml version="1.0" encoding="UTF-8" ?>

<rss version ="2.0" xmlns:g="http://base.google.com/ns/1.0">

<channel>
 <title>The name of your data feed.</title>
 <description>A description of your content.</description>
 <link>http://www.example.com</link>

<item>
<title>Red wool sweater</title>

<g:brand>Acme</g:brand>
<g:condition>new</g:condition>
<description>Comfortable and soft, this sweater will keep you warm on those cold winter nights.</description>
<guid>1</guid>
<g:image_link>http://www.example.com/image1.jpg</g:image_link>
<link>http://www.example.com/item1-info-page.html</link>
<g:mpn>ABC123</g:mpn>
<g:price>25</g:price>
<g:product_type>Clothing & Accessories > Clothing > Outerwear > Sweaters</g:product_type>

<g:quantity>3</g:quantity>
<g:shipping>
   <g:country>US</g:country>
   <g:region>MA</g:region>
   <g:service>Ground</g:service>
   <g:price>5.95</g:price>
</g:shipping>
<g:shipping>

   <g:country>US</g:country>
   <g:region>024*</g:region>
   <g:service>Ground</g:service>
   <g:price>7.95</g:price>
</g:shipping>
<g:tax>
   <g:country>US</g:country>

   <g:region>CA</g:region>
   <g:rate>8.25</g:rate>
   <g:tax_ship>y</g:tax_ship>
</g:tax>
<g:tax>
   <g:country>US</g:country>
   <g:region>926*</g:region>

   <g:rate>8.75</g:rate>
   <g:tax_ship>y</g:tax_ship>
</g:tax>
<g:upc>0001230001230</g:upc>
<g:weight>0.1 lb</g:weight>
</item>
 
<item> 
<title>Total Recall</title>
<g:brand>Acme</g:brand>

<g:condition>used</g:condition>
<description>Slightly used copy of Total Recall, the sci-fi classic, on DVD.</description>
<guid>2</guid>
<g:image_link>http://www.example.com/image2.jpg</g:image_link>
<link>http://www.example.com/item2-info-page.html</link>
<g:mpn>XXYYZZ</g:mpn>
<g:price>12</g:price>
<g:product_type>Media > DVDs & Videos > Science Fiction</g:product_type>

<g:quantity>1</g:quantity>
<g:shipping>
   <g:country>US</g:country>
   <g:region>MA</g:region>
   <g:service>Ground</g:service>
   <g:price>5.95</g:price>
</g:shipping>
<g:tax>

   <g:country>US</g:country>
   <g:rate>0</g:rate>
</g:tax>
<g:upc>0004560004560</g:upc>
<g:weight>0.2 lb</g:weight>
</item>
 
<item> 
<title>Winnie the Pooh</title>
<g:brand>Acme</g:brand>

<g:condition>used</g:condition>
<description>Used copy. The adventures of Christopher Robin and his friends.</description>
<guid>3</guid>
<g:image_link>http://www.example.com/image3.jpg</g:image_link>
<g:isbn>0142404675</g:isbn>
<link>http://www.example.com/item3-info-page.html</link>
<g:price>20</g:price>
<g:product_type>Media > Books > Fiction > Literature</g:product_type>

<g:quantity>1</g:quantity>
<g:shipping>
   <g:country>US</g:country>
   <g:price>5.95</g:price>
</g:shipping>
<g:tax>
   <g:country>US</g:country>
   <g:rate>0</g:rate>

</g:tax>
<g:weight>0.3 lb</g:weight>
</item>
 
<item> 
<title>8" plush Care Bear</title>
<g:brand>Acme</g:brand>
<g:condition>new</g:condition>
<description>Small care bear, brand new, absolutely adorable!</description>
<guid>4</guid>
<g:image_link>http://www.example.com/image4.jpg</g:image_link>

<link>http://www.example.com/item4-info-page.html</link>
<g:mpn>AB001</g:mpn>
<g:price>6.99</g:price>
<g:product_type>Toys & Games > Toys > Dolls & Action Figures > Stuffed Toys</g:product_type>

<g:quantity>5</g:quantity>
<g:shipping>
   <g:country>US</g:country>
   <g:price>5.95</g:price>
</g:shipping>
<g:tax>
   <g:country>US</g:country>
   <g:region>CA</g:region>

   <g:rate>8.25</g:rate>
   <g:tax_ship>y</g:tax_ship>
</g:tax>
<g:upc>0789012345678</g:upc>
<g:weight>0.4 lb</g:weight>
</item>
</channel>
</rss>

Comments

Popular posts from this blog

Switching from Notepad++ FTP to Visual Studio Code FTP

Simple PHP Script to read Tab Delimited File

jTable to edit and process MySQL table using CodeIgnitor : Part 2