Thanks for the post! It really helped, but I was wondering about FreeClob... I call my function, passing the temporary clob in and the xml parser seems to work fine, but when I call FreeClob, I get an error back from DOA (3.4.6): ORA-06502: PL/SQL: numeric or value error: invalid LOB locator...