I get the same problem using the xmlelement() function. i.e.
select xmlelement ("root", xmlattributes( person_id, last_name, first_name)) from person
The 7th row is a <CLOB> but when I open it up, it is empty. Other rows have a <Value Error> error. The empty <CLOB> value also appears on rows 37, 107, 137, 207, etc.
I am using PL/SQL Dev 7.1.1.1339 and oracle client v10.2.