I think the path would be :
object/parts/part/
Thanks,
Steve
Steven Bennett
Manager, Applications Development
AIT Worldwide Logistics, Inc.
Chicago, Illinois, USA
Office: +1 (630)766-8300 / Ext: 6472
Fax: +1 (630) 250-3708
www.aitworldwide.com<
http://www.aitworldwide.com/>
our people deliver.(r)
[cid:image001.png@01DB675D.EACA7D80]<
http://www.facebook.com/aitworldwide> [cid:image002.png@01DB675D.EACA7D80] <
http://www.linkedin.com/company/24870> [cid:image003.png@01DB675D.EACA7D80] <
http://www.glassdoor.com/Overview/Working-at-AIT-Worldwide-Logistics-EI_IE31929.11,34.htm> [cid:image004.png@01DB675D.EACA7D80] <
http://www.youtube.com/user/aitait701>
[cid:image005.jpg@01DB675D.EACA7D80]<
http://fundraising.stjude.org/site/TR/Walk/Walk?team_id=223905&pg=team&fr_id=89696>
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Dave
Sent: Wednesday, January 15, 2025 2:33 PM
To: rpg400-l@xxxxxxxxxxxxxxxxxx
Subject: XML-INTO %HANDLER PATH
CAUTION: This message originated externally, please use caution when clicking on links or opening attachments!
Hi,
The simple example given by IBM to demonstrate the use of the %handler
function of XML-INTO uses an xml structure similar to this :
options = 'doc=file path= parts/part';
<parts>
<part><qty>100</qty><id>A1</id><cost>12.03</cost></part>
<part><qty>2</qty><id>A4</id><cost>1.98</cost></part>
</parts>
How would I indicate the path if parts is nested in another array like
this ? :
<object><id>O1</>
<parts>
<part><qty>100</qty><id>A1</id><cost>12.03</cost></part>
<part><qty>2</qty><id>A4</id><cost>1.98</cost></part>
</parts>
</object>
<object><id>O2</>
<parts>
<part><qty>100</qty><id>B1</id><cost>12.03</cost></part>
<part><qty>2</qty><id>B4</id><cost>1.98</cost></part>
</parts>
</object>
Thanks
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx<mailto:RPG400-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l<
https://lists.midrange.com/mailman/listinfo/rpg400-l>
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx<mailto:RPG400-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/rpg400-l<
https://archive.midrange.com/rpg400-l>.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.
**********************************************************************************************************************
This electronic message transmission contains information from AIT Worldwide Logistics, Inc. and is confidential
and/or legally privileged and shall remain the property of AIT Worldwide Logistics, its subsidiaries, affiliates
and parent companies. The information is intended only for the use by the designated person(s) named above. If you
are not the intended recipient, any disclosure, copying, distribution or use of or any other action or reliance based
on the contents of this information is strictly prohibited. If you received this electronic transmission in error,
please notify the sender listed above.
Global services provided by AIT Worldwide Logistics are subject to the applicable terms and conditions published at
http://www.aitworldwide.com/terms-and-conditions.
**********************************************************************************************************************
As an Amazon Associate we earn from qualifying purchases.