title: xmltype character string buffer too small
body: <p>In my stored procedure:</p>
  
  <pre><code> declare
  v_xml xmltype;
  begin
  open v_cur for
  Select xmlelement('el',xmlagg(xmlelement('el2'))) from table;
  loop
  fetch v_cur into v_xml; -- line where the error 
  
  *.....additional logic to parse v_xml*
  end loop;
  end;
  </code></pre>
  
  <p>I'm getting a "character string buffer too small" error when the record to be fetched into v_xml has a length > 4000. Do you guys have any idea on how to go about this? Thanks</p>