Oracle Solution for Error ora-31187

Solution for Oracle Error ORA-31187

ORA-31187: Cannot Add Node 'string

' (type='string

') to Simple Type Node 'string

'

What triggered the Error:

Trying to add attribute/element nodes to a simple type against the schema definition. Simple types can have only special attribute like namespaces, xsi:nil etc.

What should we do to fix it:

Use a valid node for the operation.