On Aug 27, 2018, at 10:34 AM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:
I have an existing RPG *SRVPGM that pulls an XML document into a data structure. It makes multiple XML-INTO calls, and I’m wondering if I can accomplish it with a single XML-INTO (or if I’ll need to use XML-SAX). It’s currently using the path parameter on XML-INTO to navigate down two levels. I tried to point it at the top level, but that failed.
<product … />
Dcl-ds gOutputDs qualified inz ;
Products likeDs() dim() ;
Stages likeDs() dim() ;
productsToLoad likeDs() dim() ;
loadedContainers likeDs() dim() ;
unloadedProducts likeDs() dim();
RPG (current snippet):
Xml-into€ gOutput.products %xml(fullFilePath :’doc=file path=topLevel/products/product allowextra=yes’);
I was hoping I could find the correct “path”, but so far the RPG docs & Google have failed me.
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD