Schau mal, ob Dir der folgende Artikel weiterhilft:
Using RPG to exploit IBM DB2 XML support

Birgitta