Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/sales.git
src/main/resources/scripts/2_ca_safeway.xml
-->
- <var-def name="store_code">
- <xpath expression="//select[@id='store_select']/option/@value">
- <html-to-xml outputtype="pretty" id="store_page">
- <http method="get" url="${vendor_url}" id="vendor_url">
+ <var-def name="store_code" id="store_code">
+ <xpath expression="(//select[@id='store_select']/option/@value)[1]">
+ <html-to-xml>
+ <http method="get" url="${vendor_url}">
<http-param name="type">1</http-param>
- <http-param name="postal_code" id="postal_code"><var name="location_code"/></http-param>
+ <http-param name="postal_code"><var name="location_code"/></http-param>
</http>
</html-to-xml>
</xpath>
</var-def>
-<!--
- <var-def name="flyer_page">
- <html-to-xml outputtype="pretty" prunetags="script">
- <http method="get" url="${vendor_url}?${store_code}">
- <http-param name="postal_code">
- <var name="location_code"/>
- </http-param>
+ <var-def name="flyer_page" id="flyer_page">
+ <html-to-xml>
+ <http method="get" url="${vendor_url}">
+ <http-param name="store_code"><var name="store_code"/></http-param>
</http>
</html-to-xml>
</var-def>
--->
<var-def name="message_body">

Downloaded Safeway flyer page.

Author djarvis <email>
Date 2016-06-27 23:50:00 GMT-0700
Commit 2041b1321e887fdf00d5ad330276dc88ce3027ff
Parent 12e565e
Delta 9 lines added, 13 lines removed, 4-line decrease