{l s='You can manually specify the path to value from the XML file.' mod='pshowimporter'}
{l s='Example of XML' mod='pshowimporter'}:
<tags>
{' '|str_repeat:4}<tagName attrName="attrValue1">10</tagName>
{' '|str_repeat:4}<tagName attrName="attrValue2">20</tagName>
{' '|str_repeat:4}<tagName attrName="attrValue3">30</tagName>
</tags>
{l s='Example of custom matching' mod='pshowimporter'}:
| Your custom path | Value from example basing on your custom path |
|---|---|
| tags | {l s='collection' mod='pshowimporter'} (<tagName attrName="attrValue1">10</tagName><tagName attrName="attrValue2">20</tagName><tagName attrName="attrValue3">30</tagName>) |
| tags/tagName | {l s='collection' mod='pshowimporter'} (10, 20, 30) |
| tags/tagName[@attrName="attrValue1"] | {l s='collection' mod='pshowimporter'} (10) |
| tags/tagName[@attrName="attrValue2"] | {l s='collection' mod='pshowimporter'} (20) |
| tags/tagName[@attrName="attrValue2"][. < 20] | {l s='collection' mod='pshowimporter'} () |
| tags/tagName[. mod 6 = 0] | {l s='collection' mod='pshowimporter'} (30) |
| tags/tagName[. < 15] | {l s='collection' mod='pshowimporter'} (10) |
| tags/tagName[. > 10] | {l s='collection' mod='pshowimporter'} (20, 30) |
| tags/tagName/@attrName | {l s='collection' mod='pshowimporter'} (attrValue1, attrValue2, attrValue3) |
| tags/tagName[. < 15] | tags/tagName[. > 20] | {l s='collection' mod='pshowimporter'} (10, 30) |
{l s='More informations in PHP documentation' mod='pshowimporter'}: http://php.net/manual/en/simplexmlelement.xpath.php
{l s='and in MSDN' mod='pshowimporter'}: https://msdn.microsoft.com/en-us/library/ms256086(v=vs.110).aspx
{l s='Test your custom matches here' mod='pshowimporter'}: http://www.xpathtester.com/xpath
| {l s='Your custom path' mod='pshowimporter'} | {l s='PrestaShop field' mod='pshowimporter'} | |
|
|
{include file="../helpers/config_matchxml_dbfield.tpl" type='custommatches' md5=$i} |