You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2007/08/25 18:17:30 UTC
[jira] Updated: (XERCESJ-1234) NAMESPACE_ERR raised from
createDocument() if namespaceURI and qualifiedName are null.
[ https://issues.apache.org/jira/browse/XERCESJ-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Glavassevich updated XERCESJ-1234:
------------------------------------------
Fix Version/s: 2.9.1
> NAMESPACE_ERR raised from createDocument() if namespaceURI and qualifiedName are null.
> --------------------------------------------------------------------------------------
>
> Key: XERCESJ-1234
> URL: https://issues.apache.org/jira/browse/XERCESJ-1234
> Project: Xerces2-J
> Issue Type: Bug
> Components: DOM (Level 3 Core)
> Affects Versions: 2.9.0
> Reporter: Michael Glavassevich
> Assignee: Michael Glavassevich
> Priority: Minor
> Fix For: 2.9.1
>
>
> If DOMImplementation.createDocument() is called with a null namespaceURI and qualifiedName it's supposed to return an empty Document (i.e. one with no document element). This doesn't work with a few of the DOM implementations, specifically CoreDOMImplementationImpl and PSVIDOMImplementationImpl:
> org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
> at org.apache.xerces.dom.ElementNSImpl.setName(ElementNSImpl.java:106)
> at org.apache.xerces.dom.ElementNSImpl.<init>(ElementNSImpl.java:81)
> at org.apache.xerces.dom.CoreDocumentImpl.createElementNS(CoreDocumentImpl.java:2091)
> at org.apache.xerces.dom.CoreDOMImplementationImpl.createDocument(CoreDOMImplementationImpl.java:289)
>
> org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
> at org.apache.xerces.dom.ElementNSImpl.setName(ElementNSImpl.java:106)
> at org.apache.xerces.dom.ElementNSImpl.<init>(ElementNSImpl.java:81)
> at org.apache.xerces.dom.PSVIElementNSImpl.<init>(PSVIElementNSImpl.java:55)
> at org.apache.xerces.dom.PSVIDocumentImpl.createElementNS(PSVIDocumentImpl.java:97)
> at org.apache.xerces.dom.PSVIDOMImplementationImpl.createDocument(PSVIDOMImplementationImpl.java:116)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org