My Oracle Support Banner

How to Create a Node with Text Greater Than 32k Using Dbms_xmldom.Createtextnode (Doc ID 294102.1)

Last updated on JANUARY 28, 2022

Applies to:

Oracle XML Developers Kit - Version 9.2.0.3 and later
Information in this document applies to any platform.

Goal

 You are trying to use DBMS_XMLDOM.createTextNode( doc DOMDocument,
data IN VARCHAR2) and want to pass CLOB (>32k) to the function as data. With
CLOB less than 32k, You can convert CLOB to varchar2 using DBMS_LOB.Read but with
CLOB greater than 32k it won't work. We might do that in chunks but we still be
limited to the 32k length for passing the parameter to the function.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.