View previous topic :: View next topic
|
Author |
Message |
grvtomar
New User
Joined: 29 Apr 2015 Posts: 7 Location: Sri Lanka
|
|
|
|
Hello everybody,
I want to process a xml file in PL1 without using any extenal parser.
Steps, which I want to process.
1. Read a xml file. save the data into local variables.
2. Process the data(fatching/update database)
3. rewrite a xml file.
Can anybody please help me to understand this ?
Thanks, |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
grvtomar wrote: |
I want to process a xml file in PL1 without using any extenal parser. |
You either use the PL/I built-in parser, or the standard z/OS system XML parser, although it may already be used internally by the PL/I builtin parsers.
Any other approach would totally and completely insane!
grvtomar wrote: |
Steps, which I want to process.
1. Read a xml file. save the data into local variables. |
And how do you plan to handle the 42 zillion different local variables that you need, or handle data that flows from one record of the input file into the next, or next 42?
grvtomar wrote: |
2. Process the data(fatching/update database) |
Even this line in this post makes no sense, what the flipping 'ell is "fatching"????
grvtomar wrote: |
3. rewrite a xml file. |
Sure, and given that you're a beginner according to your profile, this will be easy. |
|
Back to top |
|
|
grvtomar
New User
Joined: 29 Apr 2015 Posts: 7 Location: Sri Lanka
|
|
|
|
hello Prino,
Thanks for your quick reply.
Yes, I am a beginner !
1.
You either use the PL/I built-in parser, or the standard z/OS system XML parser, although it may already be used internally by the PL/I builtin parsers.
Any other approach would totally and completely insane!
me:- I will use builtin parser ! thanks
2. And how do you plan to handle the 42 zillion different local variables that you need, or handle data that flows from one record of the input file into the next, or next 42?
me:- records are not more than 30. its a packet of 30 datasets for a single customer. and these 30 variables can be reuse for each customer. I am planning to read for only a customer and process it and again for another customer. your suggestion would be appreciated
3. Sure, and given that you're a beginner according to your profile, this will be easy.
me:- your suggestion on this aswell please.
Thanks, |
|
Back to top |
|
|
|