title: The string literal is longer than 4000 characters
body: <p>I have one function which basically consume XML as input and do the next step.</p>
  
  <p>I'm passing XML from one statement but it is giving error </p>
  
  <p><strong>"The string literal is longer than 4000 characters"</strong></p>
  
  <p><strong>Function</strong></p>
  
  <pre><code>create or replace FUNCTION F_ADD_TEST(P_XML_DATA CLOB) RETURN NUMBER AS
  xmlContent xmlType;
  RESP_XML XMLTYPE;
  
  o xmlType;
  c xmlType;
  
  
  BEGIN
  --xmlContent := xmlType(xmlData);
  raise_application_error('-20003',P_XML_DATA);
  -- Further steps
  
  
  RETURN 1;
  END F_ADD_TEST;
  </code></pre>
  
  <p><strong>Statement</strong></p>
  
  <pre><code>Select F_ADD_TEST('&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SyncReceiveDelivery xmlns:ln="http://schema.infor.com/InforOAGIS/2"&gt;
      &lt;DataArea&gt;
          &lt;ReceiveDelivery&gt;
              &lt;ReceiveDeliveryHeader&gt;
                  &lt;DocumentID&gt;
                      &lt;ID&gt;100_ZHA005270&lt;/ID&gt;
                  &lt;/DocumentID&gt;
              &lt;WarehouseLocation&gt;
                  &lt;ID&gt;W_ZHF12S&lt;/ID&gt;
              &lt;/WarehouseLocation&gt;
          &lt;/ReceiveDeliveryHeader&gt;
          &lt;ReceiveDeliveryItem&gt;
              &lt;LineNumber&gt;10&lt;/LineNumber&gt;
              &lt;ItemID&gt;
                  &lt;ID&gt;24101600PA02435&lt;/ID&gt;
                  &lt;RevisionID&gt;S000&lt;/RevisionID&gt;
              &lt;/ItemID&gt;
              &lt;ReceivedQuantity&gt;1&lt;/ReceivedQuantity&gt;
              &lt;ServiceOrder&gt;KRH000033&lt;/ServiceOrder&gt;
          &lt;/ReceiveDeliveryItem&gt;
          &lt;ReceiveDeliveryItem&gt;
              &lt;LineNumber&gt;20&lt;/LineNumber&gt;
              &lt;ItemID&gt;
                  &lt;ID&gt;24101600PA04407&lt;/ID&gt;
                  &lt;RevisionID&gt;S000&lt;/RevisionID&gt;
              &lt;/ItemID&gt;
              &lt;ReceivedQuantity&gt;4&lt;/ReceivedQuantity&gt;
              &lt;ServiceOrder&gt;KRH000033&lt;/ServiceOrder&gt;
          &lt;/ReceiveDeliveryItem&gt;
      &lt;/ReceiveDelivery&gt;
  &lt;/DataArea&gt;
  &lt;/SyncReceiveDelivery&gt;') from dual;
  </code></pre>
  
  <p>If the XML content is huge I'm getting error</p>
  
  <p><strong>"The string literal is longer than 4000 characters"</strong></p>
  
  <p>I have changed datatype from Varchar to clob but still the same. Please help me on this.</p>