org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

The persistence_2_0.xsd enforces the order of the elements in the xml. Re-ordering them makes then error go away.

Solutions on the web

via xerces-j-users by Danny Sinang, 1 year ago
The processing instruction target matching "[xX][mM][lL]" is not allowed.
via xerces-j-users by Danny Sinang, 1 year ago
The processing instruction target matching "[xX][mM][lL]" is not allowed.
via Google Groups by Unknown author, 3 months ago
The processing instruction target matching "[xX][ mM][lL]" is not allowed.
via Oracle Community by 843834, 1 year ago
The processing instruction target matching "[xX][ mM][lL]" is not allowed.
via Oracle Community by 843836, 9 months ago
The processing instruction target matching "[xX][mM][lL]" is not allowed.
via GitHub by Lionia
, 1 year ago
The element type "keycap" must be terminated by the matching end-tag "</keycap>".
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(UnknownSource)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPIData(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanPIData(UnknownSource)
at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(UnknownSource)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource)
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)
at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source)
at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(UnknownSource)
at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(UnknownSource)
at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(UnknownSource)
at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(UnknownSource)
at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(UnknownSource)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(UnknownSource)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(Unknown Source)
at xplana.com.marklogic.ingestion.ValidationV2Test.validateXml(ValidationV2Test.java:570)
at xplana.com.marklogic.ingestion.ValidationV2Test.v2PrototypeTest(ValidationV2Test.java:851)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
2 times, 2 weeks ago
2 times, 3 weeks ago
50 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.