You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by ji...@apache.org on 2004/03/13 01:00:16 UTC

[jira] Updated: (XMLBEANS-16) newDomNode creates a DOM with empty strings for namespace URIs for unprefixed attributes (rather than null)

The following issue has been updated:

    Updater: Aaron Dunlop (mailto:aaron.dunlop@transcore.com)
       Date: Fri, 12 Mar 2004 3:59 PM
    Comment:
Between David Waite and I, we've learned a little more about this issue. It appears to depend on which JAXP implementation is used - Xerces handles the empty string we set on the attribute and stores it with the proper null. Crimson doesn't (I haven't tested other implementations). This test case exposes the problem when executed under Crimson. I'll attach David's fix as well.
    Changes:
             Attachment changed to test16.patch
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=XMLBEANS-16&page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=XMLBEANS-16

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-16
    Summary: newDomNode creates a DOM with empty strings for namespace URIs for unprefixed attributes (rather than null)
       Type: Bug

     Status: Open

    Project: XMLBeans
 Components: 
             DOM
   Versions:
             unspecified

   Assignee: xmlbeans-dev@xml.apache.org
   Reporter: David Waite

    Created: Sat, 7 Feb 2004 7:01 PM
    Updated: Fri, 12 Mar 2004 3:59 PM
Environment: Operating System: Windows XP
Platform: PC

Description:
on attributes without a prefix qualifier, element.getAttributeNS(null, "name") should work; however, the 
DOM that xmlbeans creates sets the namespace URI to an empty string rather than null. DOM specifies 
that empty namespaceURI parameters are represented by null


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/