SQL>
SQL> CREATE TABLE testxml (id NUMBER(3), dt SYS.XMLTYPE);
Table created.
SQL>
SQL> DECLARE
2 x VARCHAR2(1000);
3 BEGIN
4
5 INSERT INTO testxml VALUES (222,
6 sys.xmltype.createxml(
7 '
8
9 T J
10 Plumber
11 '));
12 end;
13 /
PL/SQL procedure successfully completed.
SQL>
SQL> SELECT *
2 FROM testxml
3 /
ID DT
-----------------------------------------------------------------------------------------
222 T J Plumber
SQL>
SQL> drop table testxml;
Table dropped.