How to fix the Oracle error LSX-00157: “~S” is abstract and cannot be used in an instance document?

In this post, you’ll learn more about the Oracle ErrorLSX-00157: “~S” is abstract and cannot be used in an instance document with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

LSX-00157: “~S” is abstract and cannot be used in an instance document

Reason for the Error LSX-00157: “~S” is abstract and cannot be used in an instance document

Cause: The element declaration or the type definition was abstract.

How to fix the Error LSX-00157: “~S” is abstract and cannot be used in an instance document ?

You can fix this error in Oracle by following the below steps

Action: When an element is declared to be abstract, a member of that element’s substitution group must appear in the instance document. When an element’s corresponding type definition is declared as abstract, all instances of that element must use xsi:type to indicate a derived type that is not abstract.

Tags :

Leave Your Comment