C1TextParser

ECommerceOrder

ECommerceOrder

This view shows basic features of HtmlExtractor.

Features

  • Sample Applications

  • Html Extractor

    From amazon order emails extract relevant information about the order itself. This sample pretends to demonstrate the repeated place holder extraction capabilities of C1TextParser - Html extractor. The sample consists on three fixed place holders and one repeated block. The fixed place holders are the customer name, the order delivery date and also the total amount of the order. The repeated block is used to extract each article that appear in the ordered article list. It contains three repeated place holders. These are: the name, the price and the seller of the article. The amazon email used as the extraction source is "amazonEmail2.html"

    Input file

    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
    </head>
    <body dir="ltr">
    <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
    <span style="color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">&nbsp;</span><br>
    </div>
    <div>
    <div>
    <div>
    <div>
    <table width="640" cellspacing="0" cellpadding="0" style="font:12px/16px Arial,sans-serif; color:#333; background-color:#FFF; margin:0 auto">
    <tbody>
    <tr>
    <td valign="top" style="padding:20px 0px 10px 20px; width:100px; border-collapse:collapse">
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2F%3Fref_%3Dpe_386191_51767771_TE_g_i&amp;A=HGK2CQZMFWNH5FIH5VDOHRP4FZWA&amp;H=VALDY8NX6RBPJWZF6WA9HQ9JKY4A&amp;ref_=pe_386191_51767771_TE_g_i" title="Visit Amazon.es" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif"><img alt="Amazon" border="0" height="31" id="amazonLogo" width="107" style="font-size:11px" src="http://g-ecx.images-amazon.com/images/G/30/aa/amazon/logo.gif"></a>
    </td>
    <td style="text-align:right; padding:0px 20px">
    <table cellspacing="0" cellpadding="0" style="font:12px/16px Arial,sans-serif; color:#333; margin:0 auto; border-collapse:collapse">
    <tbody>
    <tr>
    <td class="topHeaderLinks" style="border-bottom:1px solid rgb(204,204,204); width:490px; padding:5px 0px 5px 0px">
    <table align="right" cellspacing="0" style="border-collapse:collapse">
    <tbody>
    <tr>
    <td style="padding:0px; vertical-align:bottom; font:12px/16px Arial,sans-serif"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fgp%2Fcss%2Fyour-orders-access%2Fref%3Dpe_386191_51767771_TE_oh_tn&amp;A=KII2QPCCEATN1GO58EORAWA3CZMA&amp;H=RT0GAH6YEHHB0BGBWJSDEXA9Q7AA&amp;ref_=pe_386191_51767771_TE_oh_tn" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">My orders</a> <span style="text-decoration:none; color:#CCC; font:15px Arial,san-serif">
    &nbsp;|&nbsp;</span> </td>
    <td style="padding:0px; vertical-align:bottom; font:12px/16px Arial,sans-serif"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fgp%2Fcss%2Fyour-account-access%2Fref%3Dpe_386191_51767771_TE_ya_tn&amp;A=KKEWWSYJGGLA5FXYQPS2EVCGOS0A&amp;H=6JQ0KOZVHAAYVEDFAWBACLPWZ0SA&amp;ref_=pe_386191_51767771_TE_ya_tn" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">My account</a> <span style="text-decoration:none; color:#CCC; font:15px Arial,san-serif">
    &nbsp;|&nbsp;</span> </td>
    <td style="padding:0px; vertical-align:bottom; font:12px/16px Arial,sans-serif"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2F%3Fref_%3Dpe_386191_51767771_TE_g_tn&amp;A=OKUANHWHGCLSVPTDERQLJKNMJEQA&amp;H=WHBDR2EORA4PC1HXLWMOKUYEDOCA&amp;ref_=pe_386191_51767771_TE_g_tn" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">Amazon.es</a>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td style="text-align:right; padding:7px 0px 0px 20px; width:490px"><span style="font:20px Arial,san-serif">Shipment confirmation</span>
    </td>
    </tr>
    <tr>
    <td style="text-align:right; padding:0px 0px 5px 20px; width:490px"><span style="font-size:12px">Order No.
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fgp%2Fcss%2Fsummary%2Fedit.html%2Fref%3Dpe_386191_51767771_TE_od_tn%3Fie%3DUTF8%26orderID%3D403-8843326-6659534&amp;A=MUWJVCCHMKUZUAMWORCKGKMPYVCA&amp;H=DAZCNB4RJZ00I9HT2QIHAMJWBA0A&amp;ref_=pe_386191_51767771_TE_od_tn" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    403-8843326-6659534</a> </span></td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="width:640px">
    <p style="margin-top: 0px; margin-bottom: 0px;font:18px Arial,sans-serif; color:#cc6600; margin:15px 20px 0 20px">Hello Alexandre Silva:</p>
    <p style="margin-top: 0px; margin-bottom: 0px;margin:4px 20px 18px 20px; width:640px">
    We inform you that we have already sent your products. Since this order is in the process of being shipped, you will not be able to make any changes. If you want to return a product of your order or manage other products, visit
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fgp%2Fcss%2Fyour-orders-access%2Fref%3Dpe_386191_51767771_TE_oh_bd&amp;A=7TIBO5WF0NTAAJNNGCGQ2CPDGPGA&amp;H=TWUAGT9KPUYWNUADSCWJSTNLN2KA&amp;ref_=pe_386191_51767771_TE_oh_bd" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    My orders</a> at Amazon.es. </p>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="padding:0 20px; width:640px">
    <table cellspacing="0" cellpadding="0" style="border-top:3px solid #2d3741; width:640px">
    <tbody>
    <tr>
    <td valign="top" style="font:14px Arial,san-serif; padding:11px 0 14px 18px; width:280px; background-color:#efefef">
    <span style="color:#666">The estimated delivery date is:</span> <br>
    <p style="margin-top: 0px; margin-bottom: 0px;margin:2px 0 9px 0"><strong>Monday, September 07, 2015</strong>
    </p>
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fgp%2Fcss%2Fshiptrack%2Fview.html%2Fref%3Dpe_386191_51767771_TE_typ%3Fie%3DUTF8%26addressID%3Djlkimwluslp%26trackingNumber%3D2015310828289103909497%26latestArrivalDate%3D1441652400%26shipMethod%3DSEUR_ES%26orderID%3D403-8843326-6659534%26shipmentDate%3D1441020577%26orderingShipmentId%3D2768209606127%26packageId%3D1&amp;A=D1WCAVGFOUMZ7AX60X9DEO855R8A&amp;H=ASP49MBQQFQQICVSU0LNMD4JDVAA&amp;ref_=pe_386191_51767771_TE_typ" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif"><img alt="Seguimiento de tu pedido" border="0" height="26" id="trackYourPackage" width="178" style="font-size:13px" src="http://g-ec2.images-amazon.com/images/G/30/x-locale/cs/te/button-track._V392723808_.png">
    </a></td>
    <td valign="top" style="font:14px Arial,san-serif; padding:11px 18px 14px 18px; width:280px; background-color:#efefef">
    <span style="color:#666">Your order has been sent to: </span><br>
    <p style="margin-top: 0px; margin-bottom: 0px;margin:2px 0"><strong>Alexandre Romain Lucas Ventosa da Silva
    <br>
    Rua da Veiga Nº64 Palmeira <br>
    Braga, Braga 4700-747 <br>
    Portugal </strong></p>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="font-size:10px; color:#666; padding:0 10px 20px 10px; line-height:16px; width:640px">
    <p style="margin-top: 0px; margin-bottom: 0px;margin:10px 0 0 0; font:11px/16px Arial,sans-serif; color:#333">
    The transport company responsible for sending your order is SEUR and the tracking number of your order is 2015310828289103909497. Keep in mind that the tracking information of your order may not be available at the time you receive this
    e-mail. Visit our <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fgp%2Fhelp%2Fcustomer%2Fdisplay.html%3FnodeId%3D200903350%26ref_%3Dpe_386191_51767771_TE_htr&amp;A=JY7R4769XDA4IAKXQAYPNW2AAVOA&amp;H=JZ7YVRR28I0DXDJVIIGBVE4JHM0A&amp;ref_=pe_386191_51767771_TE_htr" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    help pages</a> to get more information about the transport company and track your order through its website.
    <br>
    <br>
    If you have a mobile device, you can use the <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fnotificaciones%3Fref_%3Dpe_386191_51767771_TE_MoAl&amp;A=QUOLNAYKIVP0A1G1NRZIZYIZ3ZAA&amp;H=5YOOOSCAYGZC6AN6TMFTQJJEHCOA&amp;ref_=pe_386191_51767771_TE_MoAl" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    free amazon app</a> to receive notifications about the status of your order and locate it at any time.
    <br>
    </p>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="width:640px">
    <p style="margin-top: 0px; margin-bottom: 0px;font:18px Arial,sans-serif; color:#cc6600; border-bottom:1px solid #ccc; margin:0 20px 3px 20px; padding:0 0 3px 0">
    Shipment information </p>
    </td>
    </tr>
    <tr>
    <td colspan="2" id="shipmentDetails" style="padding:16px 40px; width:640px">
    <table width="560" cellspacing="0" cellpadding="0">
    <tbody>
    <tr>
    <td align="center" valign="top" style="width:150px; height:115px"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fdp%2FB00LXT6H1I%2Fref%3Dpe_386191_51767771_TE_dp_i1&amp;A=AKR2LJU2PGGACRUFJQ3KPPXCLPEA&amp;H=QGLEMXXIYTW0RCNJ0FPVBKAAA5SA&amp;ref_=pe_386191_51767771_TE_dp_i1" title="ItemImage" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; margin:0 20px 0 0; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif"><img border="0" id="asin" style="margin:0 0 14px 0" src="http://ecx.images-amazon.com/images/I/51mK-nS1viL._SCLZZZZZZZ__SY115_SX115_.jpg">
    </a></td>
    <td valign="top" style="color:#666; padding:10px 10px 0 10px; width:330px; height:115px">
    <p style="margin-top: 0px; margin-bottom: 0px;margin:0 0 0 7px; padding:0"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fdp%2FB00LXT6H1I%2Fref%3Dpe_386191_51767771_TE_dp_1&amp;A=R9BIAMZU5ZXHAI4TVSJ5FHXW5E8A&amp;H=PRBHXP0JFKZDUXXSRFEPD0WPLXMA&amp;ref_=pe_386191_51767771_TE_dp_1" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; font:14px Arial,sans-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">ASUS
     Z97-P - Placa base (Intel Socket 1150, Z97, ATX) </a><br>
    <span style="font:12px Arial,sans-serif">Sold by Amazon EU S.a.r.L. </span></p>
    </td>
    <td align="right" valign="top" style="font:14px Arial,san-serif; padding:10px 0 0 0; width:80px; height:115px">
    <strong>EUR 92,71</strong> </td>
    </tr>
    <tr>
    <td align="center" valign="top" style="width:150px; height:115px"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fdp%2FB00KPRWAX8%2Fref%3Dpe_386191_51767771_TE_dp_i2&amp;A=L5H0L2IPBQ5QTF0NKJATQCZEF8YA&amp;H=Y1H2GKSX00VGPLSN5GJUDBHBXKWA&amp;ref_=pe_386191_51767771_TE_dp_i2" title="ItemImage" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; margin:0 20px 0 0; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif"><img border="0" id="asin" style="margin:0 0 14px 0" src="http://ecx.images-amazon.com/images/I/21ARB7uIIZL._SCLZZZZZZZ__SY115_SX115_.jpg">
    </a></td>
    <td valign="top" style="color:#666; padding:10px 10px 0 10px; width:330px; height:115px">
    <p style="margin-top: 0px; margin-bottom: 0px;margin:0 0 0 7px; padding:0"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fdp%2FB00KPRWAX8%2Fref%3Dpe_386191_51767771_TE_dp_2&amp;A=OL12GHACA9XYHXHAZWNNMBRKMDAA&amp;H=GYGLVPI2CDQTPOF6IJNR0SODV38A&amp;ref_=pe_386191_51767771_TE_dp_2" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; font:14px Arial,sans-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">Intel
     Core i7 4790K - Procesador de 4 GHz (LGA 1150, Quad Core, 8 MB) </a><br>
    <span style="font:12px Arial,sans-serif">Sold by Amazon EU S.a.r.L. </span></p>
    </td>
    <td align="right" valign="top" style="font:14px Arial,san-serif; padding:10px 0 0 0; width:80px; height:115px">
    <strong>EUR 334,61</strong> </td>
    </tr>
    <tr>
    <td colspan="3" style="border-top:1px solid rgb(234,234,234); padding:0pt 0pt 16px; width:560px">
    &nbsp; </td>
    </tr>
    <tr>
    <td colspan="2" align="right" valign="top" style="font:12px/18px Arial,sans-serif; padding:0 10px 0 0; color:#333; width:480px">
    Amount from the products: </td>
    <td align="right" valign="top" style="font:12px/18px Arial,sans-serif; color:#333; width:80px">
    EUR 347,41 </td>
    </tr>
    <tr>
    <td colspan="2" align="right" valign="top" style="font:12px/18px Arial,sans-serif; padding:0 10px 0 0; color:#333; width:480px">
    Shipping and handling: </td>
    <td align="right" valign="top" style="font:12px/18px Arial,sans-serif; color:#333; width:80px">
    EUR 3,88 </td>
    </tr>
    <tr>
    <td colspan="2" align="right" valign="top" style="font:12px/18px Arial,sans-serif; padding:10px 10px 0 0; color:#333; width:480px">
    Total amount before taxes: </td>
    <td align="right" valign="top" style="color:#333; font:12px/18px Arial,sans-serif; padding:10px 0 0 0; color:#333; width:80px">
    EUR 351,29 </td>
    </tr>
    <tr>
    <td colspan="2" align="right" valign="top" style="font:12px/18px Arial,sans-serif; padding:0 10px 0 0; color:#333; width:480px">
    VAT: </td>
    <td align="right" valign="top" style="color:#333; font:12px/18px Arial,sans-serif; color:#333; width:80px">
    EUR 80,80 </td>
    </tr>
    <tr>
    <td colspan="2" align="right" valign="top" style="font:12px/18px Arial,sans-serif; padding:10px 10px 0 0; color:#333; width:480px">
    <strong>Total order amount: </strong></td>
    <td align="right" valign="top" style="color:#333; font:12px/18px Arial,sans-serif; padding:10px 0 0	 0; color:#333; width:80px">
    <strong>EUR 432,09 </strong></td>
    </tr>
    <tr>
    <td colspan="2" align="right" valign="top" style="font:12px/18px Arial,sans-serif; padding:0 10px 10px 0; color:#333; width:480px">
    Paid by Mastercard: </td>
    <td align="right" valign="top" style="color:#333; font:12px/18px Arial,sans-serif; color:#333; width:80px">
    EUR 432,09 </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="padding:0 20px; line-height:22px; width:640px">
    <p style="margin-top: 0px; margin-bottom: 0px;border-top:1px solid #ccc; padding:20px 0 0 0">
    Do you need a copy of the VAT invoice? You can print it from <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fgp%2Fcss%2Fsummary%2Fedit.html%3Fie%3DUTF8%26orderID%3D403-8843326-6659534%26ref%3DTE_invOD%26ref_%3Dpe_386191_51767771&amp;A=BZTESR67MPG6CWDQJM4TPGZAMOGA&amp;H=NHHZV3CXH13RGG3O8FNM6KA3UHUA&amp;ref_=pe_386191_51767771" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    Details of the order.</a> <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=https%3A%2F%2Fwww.amazon.es%2Fimprimir_factura%3Fref%3DTE_invLM%26ref_%3Dpe_386191_51767771&amp;A=ABRKMFRRVWIZMEHTTYAXI2DRNDCA&amp;H=E76NAN4Q2QAJBTTIAB271G5JIBKA&amp;ref_=pe_386191_51767771" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    More information.</a> <br>
    Returning an order is easy. Visit our <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fgp%2Fcss%2Freturns%2Fhomepage.html%2Fref%3Dpe_386191_51767771_TE_ret&amp;A=PGAQPPDJPGUJZOQ9GVUIKZDEGVQA&amp;H=FPR56AUVTVA5YHKQM11CYLXLVMWA&amp;ref_=pe_386191_51767771_TE_ret" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    Online Return Center</a>. <br>
    If you need more information or help about your order, contact our <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fservicio_cliente%3Fref%3DTE_cs%26ref_%3Dpe_386191_51767771&amp;A=MUMPVPOFQJC8QFF0BCPVZWBLQWYA&amp;H=7ATXMHGRB5K5IMGYOS2NCYSHSAQA&amp;ref_=pe_386191_51767771" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    Customer Service</a>. <br>
    </p>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="padding:0 0 0 20px; line-height:22px; width:640px">
    <p style="margin-top: 0px; margin-bottom: 0px;margin:0; padding:0 0 20px 0; border-bottom:1px solid #eaeaea">
    We hope to see you again soon.<br>
    <span style="font:14px Arial,san-serif"><strong>Amazon.es</strong><br>
    </span></p>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="padding:0 20px">
    <table id="marketingContent" style="border-bottom:1px solid rgb(234,234,234); border-collapse:collapse; padding:0px; border-bottom:1px solid rgb(234,234,234); border-collapse:collapse; padding:0">
    <tbody>
    <tr>
    <td class="recs" style="padding:10px 0px; padding:10px 0">
    <table width="640" cellspacing="0" cellpadding="0" border="0" align="left" class="deviceWidth" style="vertical-align:central; background:white">
    <tbody>
    <tr>
    <td>
    <table width="640" class="deviceWidth" cellspacing="0" cellpadding="0" align="inherit" bgcolor="#FFFFFF">
    <tbody>
    <tr>
    <td style="font-family:Arial,Sans-Serif; font-size:18px; font-weight:normal; font-style:normal; text-decoration:none; color:#C60; text-align:left; padding:6px 0 5px 0">
    Products from my Wish List </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td>
    <table width="640" cellspacing="0" cellpadding="0" border="0" align="left" class="deviceWidth" style="vertical-align:central; background:white">
    <tbody>
    <tr>
    <td width="48%" bgcolor="#ffffff" align="left" class="asin_2col" style="font-family:Arial,Sans-Serif; padding:6px 16px 0 6px; vertical-align:top; font-size:13px; line-height:18px">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff">
    <tbody>
    <tr>
    <td valign="bottom" align="left" style="vertical-align:left; padding:4px 6px 4px 6px">
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fgp%2Fproduct%2FB00K9R1IL4%2Fref%3Dpe_386191_51767771_pd_te_s_wl_im%2F275-3435797-2279044&amp;A=M3QRXNOJN5DGIJJ0ZAYYGYWGAA0A&amp;H=3FHQNQ9Y8ADLUKJSI8D2OOPTZOKA&amp;ref_=pe_386191_51767771_pd_te_s_wl_im" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif"><img width="115" height="115" class="pr_image_115 pr_image_desktop" alt="Gigabyte GA-Z97X-GAMING3 - Placa base (DDR3-SDRAM, DIMM, ATX, LGA 1150)" border="0" src="https://images-na.ssl-images-amazon.com/images/I/51o5RHcelZL._AC_SL500_SS115_.jpg">
    </a></td>
    </tr>
    <tr align="left" style="padding:0; display:block; line-height:16px">
    <td align="left"><span style="font-family:Arial,Sans-Serif; text-decoration:none; color:#888; font-size:13px; font:13px Arial,Sans-Serif"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fgp%2Fproduct%2FB00K9R1IL4%2Fref%3Dpe_386191_51767771_pd_te_s_wl_ti%2F275-3435797-2279044&amp;A=VPK0H1JYLBBC9A6GFEW6HZ8LWZQA&amp;H=KAT5TTGAJ0PLXLU5FUBL5YIKSEWA&amp;ref_=pe_386191_51767771_pd_te_s_wl_ti" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; font-family:Arial,Sans-Serif; text-decoration:none; color:rgb(136,136,136); font-size:13px; font:13px Arial,Sans-Serif">Gigabyte
     GA-Z97X-GAMING3 - Placa base </a></span></td>
    </tr>
    <tr align="left" class="pr_title" style="padding:0; display:block; line-height:16px">
    <td valign="middle" align="left"><span style="font-family:Arial,Sans-Serif; text-decoration:none; color:#888; font-size:13px; vertical-align:3px">EUR 119,00
    </span><span style="vertical-align:0px"></span></td>
    </tr>
    </tbody>
    </table>
    </td>
    <td width="48%" bgcolor="#ffffff" align="left" class="asin_2col" style="font-family:Arial,Sans-Serif; padding:6px 16px 0 6px; vertical-align:top; font-size:13px; line-height:18px">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff">
    <tbody>
    <tr>
    <td valign="bottom" align="left" style="vertical-align:left; padding:4px 6px 4px 6px">
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fgp%2Fproduct%2FB00KPRWB9G%2Fref%3Dpe_386191_51767771_pd_te_s_wl_im%2F275-3435797-2279044&amp;A=UWQORCNF6VORLNHWOCGRWM6TZTWA&amp;H=SUPGGXMWWUZRB65LTZY8BGNKG6YA&amp;ref_=pe_386191_51767771_pd_te_s_wl_im" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif"><img width="115" height="115" class="pr_image_115 pr_image_desktop" alt="Intel Core i5-4690K Box - Procesador (3.5 GHz, zócalo LGA 1150, Quad-Core), gris" border="0" src="https://images-na.ssl-images-amazon.com/images/I/41QkRglZntL._AC_SL500_SS115_.jpg">
    </a></td>
    </tr>
    <tr align="left" style="padding:0; display:block; line-height:16px">
    <td align="left"><span style="font-family:Arial,Sans-Serif; text-decoration:none; color:#888; font-size:13px; font:13px Arial,Sans-Serif"><a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fgp%2Fproduct%2FB00KPRWB9G%2Fref%3Dpe_386191_51767771_pd_te_s_wl_ti%2F275-3435797-2279044&amp;A=YBHJAVPA2PKRB8FWNLI2WSOAJWYA&amp;H=2YZA5E0MWXBCU4DK4CBAXBU3A24A&amp;ref_=pe_386191_51767771_pd_te_s_wl_ti" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; font-family:Arial,Sans-Serif; text-decoration:none; color:rgb(136,136,136); font-size:13px; font:13px Arial,Sans-Serif">Intel
     Core i5-4690K Box - Procesador , gris</a> </span></td>
    </tr>
    <tr align="left" class="pr_title" style="padding:0; display:block; line-height:16px">
    <td valign="middle" align="left"><span style="font-family:Arial,Sans-Serif; text-decoration:none; color:#888; font-size:13px; vertical-align:3px">EUR 222,00
    </span><span style="vertical-align:0px"></span></td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="2" style="font-size:10px; color:#666; padding:20px 20px 20px 20px; line-height:16px; width:640px">
    Amazon EU S.à.r.L.<br>
    5 rue Plaetis, L- 2338<br>
    Luxemburgo<br>
    Gran Ducado de Luxemburgo<br>
    <br>
    Podrás cancelar este pedido en un plazo de 14 días desde que recibiste el producto (existen ciertas
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fderechos_legales%3Fref_%3Dpe_386191_51767771_TE_aes&amp;A=05OF0ZWOTIVR9RKAQPEX6DVZCVAA&amp;H=HJINLPSIYWWWBHTL8NYM42LKF8GA&amp;ref_=pe_386191_51767771_TE_aes" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    excepciones</a> como contenido digital o DVDs desprecintados). Te reembolsaremos el precio del producto y los gastos ordinarios de envío correspondientes a la opción de envío menos costosa que ofrezcamos. No obstante, correrá de tu cargo el gasto derivado de
     la devolución del producto salvo que se trate de un producto defectuoso, enviado por error, o productos exentos como ropa, calzado y complementos (consulta nuestra
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fpolitica_devoluciones%3Fref_%3Dpe_386191_51767771_TE_aes&amp;A=AJI8OKVTVOXXIGAGHVL9ERZNV1IA&amp;H=8B2XTIOYJGWMOOC7ZYRZDL8OMZAA&amp;ref_=pe_386191_51767771_TE_aes" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    Política de devoluciones</a>). Podrás notificarnos la cancelación a través de nuestro
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Forc%3Fref_%3Dpe_386191_51767771_TE_aes&amp;A=YZQV8JFA2QDMMPLKKYRTVYGR4X8A&amp;H=H4ZNPYDAYA7AH3RDQPFWDEM4OUAA&amp;ref_=pe_386191_51767771_TE_aes" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    Centro de devoluciones online</a>; <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fcontacto%3Fref_%3Dpe_386191_51767771_TE_aes&amp;A=FDGRALPIKGIQOAMHU5NU6GOGPQCA&amp;H=49WE8M6U3NPSJ5Z0TVUTNZYLYUMA&amp;ref_=pe_386191_51767771_TE_aes" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    contactándonos</a>; o completando este <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fg-ec2.images-amazon.com%2Fimages%2FG%2F30%2Fcs%2Fdocuments%2Fcancellationform_es._V350477958_.pdf&amp;A=GIEREZQYDP1ZIBVXNBUY3JULWKUA&amp;H=TPHUNLAYK2GYC0SZFTG0M8UU4RSA" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    formulario</a> y enviándonoslo por correo. Asimismo, podrás encontrar ayuda en los
    <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fderechos_legales%3Fref_%3Dpe_386191_51767771_TE_aes&amp;A=05OF0ZWOTIVR9RKAQPEX6DVZCVAA&amp;H=HJINLPSIYWWWBHTL8NYM42LKF8GA&amp;ref_=pe_386191_51767771_TE_aes" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    Términos y Condiciones de la Garantía Legal</a>. <br>
    Además en Amazon ofrecemos nuestra <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fpolitica_devoluciones%3Fref_%3Dpe_386191_51767771_TE_aes&amp;A=AJI8OKVTVOXXIGAGHVL9ERZNV1IA&amp;H=8B2XTIOYJGWMOOC7ZYRZDL8OMZAA&amp;ref_=pe_386191_51767771_TE_aes" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    garantía de devolución de 30 días</a>, por la cual, pasados los primeros 14 días y hasta el día 30, disfrutarás también del reembolso del importe del producto en el caso de devolución.
    <br>
    <br>
    Para cualquier reclamación y consulta, ponte en contacto con nuestro <a href="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=C&amp;U=http%3A%2F%2Fwww.amazon.es%2Fcontacto%3Fref_%3Dpe_386191_51767771_TE_aes&amp;A=FDGRALPIKGIQOAMHU5NU6GOGPQCA&amp;H=49WE8M6U3NPSJ5Z0TVUTNZYLYUMA&amp;ref_=pe_386191_51767771_TE_aes" style="text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif; text-decoration:none; color:rgb(0,102,153); font-family:Arial,san-serif">
    Servicio de atención al cliente</a>.
    <p style="margin-top: 0px; margin-bottom: 0px;">Amazon EU société à responsabilité limitée, 5 rue Plaetis, L-2338 Luxemburgo. Capital social: EUR 37.500. Número de Registro en Luxemburgo: B 101818. Número de licencia mercantil: 134248. Número de Registro de
     IVA en Luxemburgo: LU 20260743.</p>
    <br>
    <p style="margin-top: 0px; margin-bottom: 0px;">Nota: este correo ha sido enviado desde una dirección de e-mail que no acepta correos entrantes. Por favor, no respondas a este e-mail.</p>
    </td>
    </tr>
    </tbody>
    </table>
    <img width="1" height="1" src="https://www.amazon.es/gp/r.html?C=2785BHU53HVX9&amp;K=A3H70J9WLBGF9D&amp;R=29F0FB01KQC5T&amp;T=E&amp;U=http%3A%2F%2Fimages-eu.amazon.com%2Fimages%2FG%2F01%2Fnav%2Ftransp.gif&amp;A=FAAUBL2LDDKTEKJOAZFASF3PXPOA&amp;H=MCN4A1YRFBWAAGPOTKLFCZ3AF7QA">
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>
    

    Extracted result

    {
      "Extractor": "Html",
      "Result": {
      "delivery date": "Friday, September 12, 2014",
      "total order amount": "EUR 93,13 ",
      "customer name": "Roberto Rodrigues",
      "ordered articles": [
        {
          "article name": "Noctua NT-H1, Gris, 1.4 g ",
          "article price": "EUR 8,08",
          "article seller": "Amazon EU S.a.r.L."
        },
        {
          "article name": "Corsair Vengeance Pro - Disco duro para ordenador de sobremesa (memoria DDR3 de 8 GB (2 x 4 GB), 1600 MHz, PC3 12800), color azul",
          "article price": "EUR 72,91",
          "article seller": "Amazon EU S.a.r.L."
        },
        {
          "article name": "Tacens Anima 12cm - Ventilador de PC (Ventilador, Carcasa del ordenador, 12 cm, Negro, 0.15A, 1.8W)",
          "article price": "EUR 3,31",
          "article seller": "Amazon EU S.a.r.L."
        },
        {
          "article name": "Tacens Anima 8cm - Ventilador de PC (Ventilador, Carcasa del ordenador, 80 mm, Negro, 0.12 A, 1.44 W)",
          "article price": "EUR 4,07",
          "article seller": "Amazon EU S.a.r.L."
        }
      ]
    }
    }
    using System.Web.Mvc;
    using C1.TextParser;
    using System.IO;
    using System;
    
    namespace SamplesExplorer.Controllers
    {
        public partial class C1TextParserController : Controller
        {
            public ActionResult ECommerceOrder(FormCollection collection)
            {
                HtmlExtractor amazonTemplate = null;
                using (Stream amazonTemplateStream = System.IO.File.Open(Server.MapPath("~/Content/sampleFiles/amazonEmail1.html"), FileMode.Open))
                {
                    amazonTemplate = new HtmlExtractor(amazonTemplateStream);
    
                    //Repeated block for each article in the order
                    String articleNameXPath = @"//*[@id=""shipmentDetails""]/table/tbody/tr[1]/td[2]/p/a";
                    amazonTemplate.AddPlaceHolder("ordered articles", "article name", articleNameXPath);
                    String articlePriceXPath = @"//*[@id=""shipmentDetails""]/table/tbody/tr[1]/td[3]/strong";
                    amazonTemplate.AddPlaceHolder("ordered articles", "article price", articlePriceXPath);
                    String articleSellerXPath = @"//*[@id=""shipmentDetails""]/table/tbody/tr[1]/td[2]/p/span";
                    amazonTemplate.AddPlaceHolder("ordered articles", "article seller", articleSellerXPath, 8, 18);
    
                    //Fixed placeHolder for the expected delivery date
                    String deliveryDateXPath = @"/html/body/div[2]/div/div/div/table/tbody/tr[3]/td/table/tbody/tr[1]/td[1]/p/strong";
                    amazonTemplate.AddPlaceHolder("delivery date", deliveryDateXPath);
    
                    //Fixed placeHolder for the total amount of the order
                    String totalAmountXPath = @"//*[@id=""shipmentDetails""]/table/tbody/tr[8]/td[2]/strong";
                    amazonTemplate.AddPlaceHolder("total order amount", totalAmountXPath);
    
                    //Fixed placeHolder for the customer name
                    String customerNameXPath = @"/html/body/div[2]/div/div/div/table/tbody/tr[2]/td/p[1]";
                    amazonTemplate.AddPlaceHolder("customer name", customerNameXPath, 6, 15);
                }
    
                using (Stream amazonTemplateStream2 = System.IO.File.Open(Server.MapPath("~/Content/sampleFiles/amazonEmail2.html"), FileMode.Open))
                {
                    IExtractionResult result = amazonTemplate.Extract(amazonTemplateStream2);
                    ViewBag.ExtractionResult = result.ToJsonString();
                }
                return View();
            }
        }
    }
    
    @section Summary{
        <p>@Html.Raw(Resources.C1TextParser.HtmlExtractor_Text0)</p>
    }
    
    <div>
        <div>
            <h3>@Html.Raw(Resources.C1TextParser.HtmlExtractor_Title)</h3>
    
            <p>@Html.Raw(Resources.C1TextParser.ECommerceOrder_Text1)</p>
        </div>
        <div>
            <h3>Input file</h3>
            <pre class="scrollable-pre">@Html.Raw(ControlPages.GetSampleFileContent("amazonEmail1.html"))</pre>
        </div>
        <div>
            <h3>Extracted result</h3>
            <pre class="scrollable-pre">@Html.Raw(ViewBag.ExtractionResult)</pre>
        </div>
    </div>