How to use loop in a loop XML

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Bartolomeu_9000
Posts: 2
Joined: Fri Aug 17, 2018 6:16 pm

How to use loop in a loop XML

Post by Bartolomeu_9000 »

Hello,
I need to set a second loop in XML Feed in order to gather all relative data <ARTICLE> under the parent data <PRODUCT>.
First loop is set to pull all parent data from the web.
Second loop doesnt work and would appreciate your advice how should I set it up?

1) This is the loop that works:
<PRODUCTDATA type="full">
{each type="product"}
<PRODUCT>
<P_NR>{sku|parent}</P_NR>
(...)
2) Than later within I need to collect all articles under assigned product - and it doesnt work:
<ARTICLEDATA type="full">
{each type="article"}
<ARTICLE>
<A_NR>{sku}</A_NR>
(...)
3) Closure of both loopes:
{/each}
</ARTICLE>
</ARTICLEDATA>
</PRODUCT>
{/each}
</PRODUCTDATA>

Please, could you help me?
I`ve no clue (and not an expert at all).
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to use loop in a loop XML

Post by Radu »

Hi,

This is a forum for users of the Oxygen XML Editor application.
We occasionally help people who use XSLT stylesheets to process XML documents but in your case you seem to use some kind of PHP-based template engine and we do not have experience with this.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Bartolomeu_9000
Posts: 2
Joined: Fri Aug 17, 2018 6:16 pm

Re: How to use loop in a loop XML

Post by Bartolomeu_9000 »

Hi Radu,

Thank you for your answer.

Best regards,
Bartosz
Post Reply