Will

select length(XMLDOC) from my_table

not do it?