Kels,
You are not using the BeginParagraph()... EndParagraph() function as intended, please refer to the user guide.
http://help.objectiflune.com/en/planetpress-design-user-guide/Default_CSH.html#/2928.htmlThe beginparagraph … endparagraph structure can contain only the following commands: setstyle(), setstyleext(), show(), and % (indicating a commented line). Any other command included within this structure will yield unpredictable results. A margin() command should precede the beginparagraph...endparagraph structure, and each variable you reference within the structure must have its own procedure., as demonstrated in the second of the examples below. Also note that the first command within a beginparagraph...endparagraph structure must be the setstyle() command.
No crlf procedures are permitted inside a paragraph structure, since crlfs are paragraph delimiters.
Also, I would have done a for().. endfor() loop using the XMLCOUNT ('/one_show[1]/lineitems[1]/lineitem') as the "stopvalue". You can assign that value to a variable.
Then you could use show(XmlGet('/one_show[1]/lineitems[1]/lineitem['+inttostr(&i)+']/product_number[1]')) to show each detail contained in that lineitem.
Please check the next code. This is an example.
define(&i, integer, 0)
define(&iMaxLineitem, integer, XMLCOUNT('/one_show[1]/lineitems[1]/lineitem'))
for(&i,1,1,&iMaxLineitem)
show(XmlGet('/one_show[1]/lineitems[1]/lineitem['+inttostr(&i)+']/product_number[1]'))
crlf()
show(XmlGet('/one_show[1]/lineitems[1]/lineitem['+inttostr(&i)+']/format_name[1]'))
crlf()
endfor()
As for the breaking, I think it's the BeginParagraph()... EndParagraph() that is causing you this issue depending of the length of the string it's receiving vs the Arguments that it is set with.
Regards,
JF