Oracle Error ORA-31043: Element ‘string’ not globally defined in schema ‘string’

Oracle Error Message

ORA-31043: Element ‘string’ not globally defined in schema ‘string’

Reason for the Error

The specified element name has not been defined at the top level of the XML schema (i.e. globally). Elements must be defined globally to be the root of an XMLType object.

Solution

Check the XML schema definition to make sure the specified element name has been defined at the top level.