Hello,
I have been trying to split Group XML into individual XML files using XML Repeater. But I'm unable to set up XPath loop expression properties. I tried, it's not splitting into individual XML files. Could you please guide me to set up Xpath loop expression? Below is my XML.
<?xml version="1.0" encoding="UTF-8"?>
<csv entries="1224">
<entry num="1">
<Name>Job_0001</Name>
<TrimHeight>6.85</TrimHeight>
<TrimWidth>9.75</TrimWidth>
<Copies>6</Copies>
<Material>Foamboard</Material>
<Thickness>0.2in</Thickness>
<Bleed>0</Bleed>
<PDF_Path>D:\DATA\ImpFlow_US\LFP\Gang_FB_Rect_CSV2_1224\6.85x9.75.pdf</PDF_Path>
</entry>
<entry num="2">
<Name>Job_0002</Name>
<TrimHeight>6.85</TrimHeight>
<TrimWidth>9.75</TrimWidth>
<Copies>5</Copies>
<Material>Foamboard</Material>
<Thickness>0.2in</Thickness>
<Bleed>0</Bleed>
<PDF_Path>D:\DATA\ImpFlow_US\LFP\Gang_FB_Rect_CSV2_1224\6.85x9.75.pdf</PDF_Path>
</entry>
<entry num="3">
<Name>Job_0003</Name>
<TrimHeight>6.85</TrimHeight>
<TrimWidth>9.75</TrimWidth>
<Copies>11</Copies>
<Material>Foamboard</Material>
<Thickness>0.2in</Thickness>
<Bleed>0</Bleed>
<PDF_Path>D:\DATA\ImpFlow_US\LFP\Gang_FB_Rect_CSV2_1224\6.85x9.75.pdf</PDF_Path>
</entry>
<entry num="4">
<Name>Job_0004</Name>
<TrimHeight>6.85</TrimHeight>
<TrimWidth>9.75</TrimWidth>
<Copies>5</Copies>
<Material>Foamboard</Material>
<Thickness>0.2in</Thickness>
<Bleed>0</Bleed>
<PDF_Path>D:\DATA\ImpFlow_US\LFP\Gang_FB_Rect_CSV2_1224\6.85x9.75.pdf</PDF_Path>
</entry>
</csv>
setting up XPath Loop expression in XML Repeater
setting up XPath Loop expression in XML Repeater
Last edited by Aar096 on Mon Jul 26, 2021 11:44 am, edited 1 time in total.
Re: setting up XPath Loop expression
Hello unknown XML Repeater user,
the loop XPath expression needed to split this XML file into separate entry entities should simply be
/csv/entry
If it doesn't work, please contact me again.
Best regards,
Robert
the loop XPath expression needed to split this XML file into separate entry entities should simply be
/csv/entry
If it doesn't work, please contact me again.
Best regards,
Robert
Re: setting up XPath Loop expression
Hello Robert,
Thank you for your reply.
I tried it, but my file is disappearing in messages it is showing "IJT could not be opened: '000GZ.ijt'", attached my flow & XML repeater screenshot. Kindly help.
Thank you for your reply.
I tried it, but my file is disappearing in messages it is showing "IJT could not be opened: '000GZ.ijt'", attached my flow & XML repeater screenshot. Kindly help.
- Attachments
-
- Prop.png (6.15 KiB) Viewed 3804 times
-
- Prop.png (6.15 KiB) Viewed 3806 times
-
- Flow.png (20.24 KiB) Viewed 3816 times
Re: setting up XPath Loop expression in XML Repeater
Hello Aar096,
please send me your flow and a CSV file (or at least the XML file which comes out of CSV2XML).
Just out of personal interest: why don't you output single XML files for each CSV record from within CSV2XML? Alle you have to do is to switch the script property Output as single XML file from Yes to No.
please send me your flow and a CSV file (or at least the XML file which comes out of CSV2XML).
Just out of personal interest: why don't you output single XML files for each CSV record from within CSV2XML? Alle you have to do is to switch the script property Output as single XML file from Yes to No.