My Oracle Support Banner

ORA-21700 Using Xmlelement In A Select Statement (Doc ID 741510.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 and later   [Release: 10.2 and later ]
Information in this document applies to any platform.

Symptoms

The following query using xml functions gives error ORA-21700

SELECT XMLElement (
"testnamesp",
xmlattributes('http://www.library.org/2004-08-02' AS "xmlns",
'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi",
'http://library.org/2004-08-02 CheckBook.xsd' AS "xsi:
schemaLocation",
'useridvalue' AS "userId")
).getStringVal() as test_output
FROM dual;


FROM dual
*
ORA-21700: object does not exist or is marked for delete

This code runs ok in 9i

Cause

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.