If you'd be on release 7.1 it would be easy using the XMLTABLE table
function.
But on release V5R4 you need a different parser.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Alan
Shore
Gesendet: Tuesday, 17.6 2014 15:19
An: midrange-l@xxxxxxxxxxxx
Betreff: Finding data between XML tags using SQL
Hi everyone
Before I forget - we are on V5r4
For order settlements, we use a web service with XML Each transmission (XML
request and XML receipt) is stored in a file
My question is (hopefully it makes sense) Using SQL - how can I display (via
SQL) the data between XML tags (including the tags) For example - if I
supplied the XML tags of for the XML RESPONSE <range> and </range>
I would want the following displayed
<range>0</range>
Etc.
For all the records
Hope this makes sense
I am having trouble trying to think where to start
As always - all answers gratefully appreciated
Anyone
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill
Disclaimer: This message contains confidential information and is intended
only for the individual named. If you are not the named addressee you should
not disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. Any views or
opinions presented are solely those of the author and do not necessarily
represent those of the company.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.