Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i run a local shoe store. I'm using woocommerce in wordpress with a import tool wp import all. This is using a xml file.

This file is a dump from de cash register in my store and look like this:
HTML
<product>
    <productid>435</productid>
    <productnaam>grey suede rice hand punch</productnaam>
    <type>430g</type>
    <opmerking />
    <kleur>Grijs</kleur>
    <merk>Gram</merk>
    <groep>Herenschoen</groep>
    <soort>sneaker laag</soort>
    <btw_percentage>0.2100</btw_percentage>  
    <leverancier>Areyouswedish</leverancier>
    <seizoen>15zomer</seizoen>
    <webwinkel>false</webwinkel>
</product>

<maat>
    <productid>435</productid>
    <barcode>100003356</barcode>
    <maat>45</maat>
    <maatprijs>119.95</maatprijs>
    <voorraad>0</voorraad>
  </maat>
  <maat>
    <productid>435</productid>
    <barcode>100003357</barcode>
    <maat>46</maat>
    <maatprijs>119.95</maatprijs>
    <voorraad>0</voorraad>
  </maat>


The tag
<maat>45 </maat>
must become
<size>45</size>

and the element <maat> must become <product>

What I have tried:

I tried xml writer and viewer i am a excellent shoesalesmen but i don't know it any more so i change it manualy with notepad in windows before i upload it

so i hope someone can help me
Posted
Updated 17-Jan-17 18:00pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900