• Resolved edat2005

    (@edat2005)


    Hi all,

    Does anyone know how to filter duplicate records with xpath??
    I have the following XML. Only difference is the price between those two! And i only need one record.

    <product ID="2300">
    <name>title</name>
    <price currency="EUR">174.00</price>
    </product>
    
    <product ID="2300">
    <name>title</name>
    <price currency="EUR">164.00</price>
    </product>

    I have tried following xpath statement but WPALIMPORT gives me 0 records in the preview!

    /product[not(@ID=preceding-sibling::product/@ID)]/@ID

Viewing 1 replies (of 1 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi edat2005.

    XPath probably isn’t the best way to go about this. Instead, I would suggest that you use the ID attribute as the unique identifier during step 4 in order to only bring in one of these records.

Viewing 1 replies (of 1 total)
  • The topic ‘Remove duplicate records with Xpath filtering’ is closed to new replies.