Oracle Solution for Error ora-31042

Solution for Oracle Error ORA-31042

ORA-31042: Too many properties in type 'string

'

What triggered the Error:

The type can only have the same number of properties (elements and attributes) as a table can have columns.

What should we do to fix it:

Modify the XML schema to move properties into subelements that are not inlined.