You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.IllegalArgumentException: Illegal character in local name: 'xsi:nil'.
at org.dom4j.QName.validateNCName(QName.java:346)
at org.dom4j.QName.<init>(QName.java:153)
at org.dom4j.tree.QNameCache.createQName(QNameCache.java:245)
at org.dom4j.tree.QNameCache.get(QNameCache.java:115)
at org.dom4j.DocumentFactory.createQName(DocumentFactory.java:191)
at org.dom4j.tree.NamespaceStack.createQName(NamespaceStack.java:392)
at org.dom4j.tree.NamespaceStack.pushQName(NamespaceStack.java:374)
at org.dom4j.tree.NamespaceStack.getAttributeQName(NamespaceStack.java:257)
at org.dom4j.tree.AbstractElement.setAttributes(AbstractElement.java:454)
at org.dom4j.io.SAXContentHandler.addAttributes(SAXContentHandler.java:899)
at org.dom4j.io.SAXContentHandler.startElement(SAXContentHandler.java:241)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:510)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:183)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1377)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2710)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
at org.dom4j.io.SAXReader.read(SAXReader.java:494)
... 17 more
The failure did not occur with 2.1.0.
(sorry for the multiple edits ... for some reason I am unable to get version numbers correct on the first couple of tries :-) )
The text was updated successfully, but these errors were encountered:
wjcarpenter
changed the title
QName validation from 2.1.11 fails for namespaced attributes
QName validation from 2.1.1 fails for namespaced attributes
May 29, 2020
The question is, should dom4j not change anything, make a change to create a more meaningful error or implement a feature to allow creating doms without proper namespace info if the underlying reader is not namespace aware?
The QName validation added for issue #48 seems to open a regression if an attribute has a namespace qualifier. This XML parsing fails:
with this exception:
The failure did not occur with 2.1.0.
(sorry for the multiple edits ... for some reason I am unable to get version numbers correct on the first couple of tries :-) )
The text was updated successfully, but these errors were encountered: