Import XML files and run RPG ILE

5 pts.
Tags:
i5
i5 525
RPG ILE
V5R4
XML
I do not have the XML toolkit package on my i5 525. We are running V5R4. Is there still a way for me to import XML files and run in RPG ILE? I have a customer that wants to send us orders via email and XML is one of the formats they could provide for us.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Of course you can, but it will be a brute force solution.

Your XML file will (most likely) reside in the IFS so it will simply be a stream file. I hope you have Scott Klements toolbox for IFS manipulation. Without these it is still doable, but the tools again make it easier.

Once you are reading the file it is simply locating the data within the <Tags>data</Tags> groupings.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • graybeard52
    You might also want to look at the RPG commands XML-INTO and XML-SAX
    3,115 pointsBadges:
    report
  • Cwc
    As of V5R4, RPG has support for reading XML. There is an XML-INTO operation code, which reads the contents of an XML document directly into an RPG variable, which can be a field, array, data structure, or data structure array. Also, there is an XML-SAX operation. I haven't worked with XML as of yet, but these new op-codes sound useful.
    4,290 pointsBadges:
    report
  • Cwc
    Sorry Graybeard, I didn't see your answer until I had already posted mine.
    4,290 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following