Oracle Error OCI-30939: Order violation: Element ‘string’ may not follow element ‘string’

Oracle Error Message

OCI-30939: Order violation: Element ‘string’ may not follow element ‘string’

Reason for the Error

The XML schema specifies a content model that is sequential, where the order of nodes in the instance must follow the order specified by the schema, and this instance relies on the schema validity to avoid maintaining instance order information

Solution

Insert elements only in the order specified in the schema