<?xml version="1.0" encoding="UTF-8"?> <config charset="UTF-8"> <var-def name="vendor_url">https://www.thriftyfoods.com/product/</var-def> <var-def name="vendor_name">Thrifty Foods</var-def> <var-def name="product_text">price</var-def> <var-def name="product_page"> <html-to-xml outputtype="pretty" prunetags="script"> <http url="${vendor_url}${product_path}"/> </html-to-xml> </var-def> <var-def name="product_sale"> <xpath expression="boolean(//div[contains(@on-sale,'on-sale') and @itemprop='offerDetails'])"> <var name="product_page"/> </xpath> </var-def> <var-def name="product_price"> <xpath expression="(//span[@class='price' and @itemprop='price'])[last()]/text()"> <var name="product_page"/> </xpath> </var-def> <!-- See postfix.xml --> </config>