I have tried all the answers related to this parse error but none worked. Here is the issue am facing: org.xml.sax,SAXParseException; lineNumber : 1 ; columnNumber: 1 ; Content is not allowed in prolong
SaxparserImpl.parse(unknown source)
Am using jaxp-api.jar, xml is retrieved from database and while parsing, it throws exception.
There is no extra characters or white space before the start of xml.
Jdk is 1.8
Issue resolved: since my project is related to migration, I have updated the ojdbc jar from ojdbc14 to ojdbc7. So, after retrieving xml type value from DB, in ojdbc14 OracleTypes.OPAQUE is used to convert xml to string. But in ojdbc7, OracleTypes.SQLXML is equivalent for conversion. Hence I have implemented accordingly and code worked happily. Thanks everyone for your valuable thoughts.