[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
eXpat and RPG
Hello,
I'm relatively new to RPG, so I forgive me if I'm overlooking a
simple solution. I'm trying to figure out the best way to handle my
situation, and I'm not exactly sure what I can do with RPG and eXpat.
I would like to begin parsing an XML variable, and then, depending
on the value of the data in one of the XML tags, I would like to call
one of several programs and finish parsing the XML from there. Or,
possibly, continue parsing it from the other program and then finish
parsing it back in the main program. Can this be done?
Pseudocode:
Main Program:
p = XML_ParserCreate();
XML_SetCharacterDataHandler( p : charDataHandler);
XML_Parse( p : xmlData : length : 1);
charDataHandler :
if charData = 'string A'
call 'A'
parmlist
else
if charData = 'string B'
call 'B'
parmlist
endif
endif;
Program A:
somehow, continue parsing the XML that was being parsed in the
Main Program
Program B:
somehow, continue parsing the XML that was being parsed in the
Main Program
Bob Barnhart
Lead Systems Analyst
FREMONT INSURANCE COMPANY
933 East Main Street
Fremont, MI 49412
( (231) 924-0302 x 143
7 (231) 924-0880
* [1]rbarnhart@xxxxxxxx
References
1. mailto:rbarnhart@xxxxxxxx
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------