I have not used these RPG operation codes, but I have started evaluating an XML parser for RPG called EXPAT.
For me, it does seem to be very easy to use, and it’s free. See details here:
If you have problems getting the articles mentioned, try looking here:
I know that this is not exactly the answer you want; I’m sure that other people will be able to help you with the RPG codes, however, and maybe if you still find you are having problems then this EXPAT utility might be the answer.