Start a conversation

XML file format in Stock Sync

For the XML file format:

1. First, choose Upload File method. 

2. Then, set the File Format to XML. 

3. For the Parent node and Variant node refer below for more details. 

The XML format can be quite hard for some users to set up.

Here is a step by step instruction with an example for parent node and variant node:

  1. Add the Parent node which is a mandatory field. Let's take the XML feed below as an example.
  2. Based on the feed above, the Parent Node is <item>. 

  3. So you just need to type in the item in the field. There is no Variant Node present in the example above

  4. Please input Variant Node if a nested node present in the XML file.
  5. The field mapping for XML will be straightforward. Based on the example above:

  • SKU = sku
  • Title = title
  • Description = description

Note: You don't have to include the  <>  in the field mapping or node.

How to add subnode.

If the XML file contains node like below:

<product>

        <title>Pants</title>

        <description>Long Pants</description>

</product>

./product/title is the right way to write if it is a subnode.


Example

<item code="XYZ1001" description="Black Handlebar " instock="yes" wholesaleprice="100" rrp="150"/>

If the node is nested in this way, then you would need to map the variant node as the item

In the field mapping, code should be 

@code

@description

@instock


Example 2: Product and variants

<products>
<product>
<id>XYZ0001</id>
<title>Pants</title>
      <brand>
          <id>21</id>
          <title>New Collection</title>
     </brand>

<variants>
<variant>
<id>31950</id>
<type>S</type>
<title>Small</title>
</variant>
<variant>
<id>31951</id>
<type>M</type>
<title>Medium</title>
</variant>


In this case, the parent node is product and the variant node is variant.

The product id or title can be used as the variant group. 

To map the variant option, it will be ./title


Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Support

  2. Posted

Comments