org.xml.sax.SAXException: validation error: org.xml.sax.SAXException: validation error.

org.xml.sax.SAXException: validation error: org.xml.sax.SAXException: validation error.

book

Article ID: KB0084977

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
This error could be seen when XML data is not composed in accordance with the schema. When XML does not strictly follow the schema, the error ({com.tibco.xml.validation}COMPLEX_E_UNEXPECTED_CONTENT) will be thrown.
  

 Here are some points to be taken into consideration:


 - Namespace: Check namespace for the unexpected element. Namespace missing or wrong namespace could make element different.
 - Required element: Before the unexpected content, check whether there is any lost data for the 'required' element .
 - Element sequence: If elements in the schema are defined with "sequence", elements located out of order will cause the error.
 - Extra element: The schema does not define the element but it occurs in the input data.

Issue/Introduction

org.xml.sax.SAXException: validation error: org.xml.sax.SAXException: validation error.