You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2003/04/14 17:45:56 UTC

DO NOT REPLY [Bug 19001] New: - DOM2Writer prints xmlns:="" when Element ns prefix is empty string

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19001>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19001

DOM2Writer prints xmlns:="" when Element ns prefix is empty string

           Summary: DOM2Writer prints xmlns:="" when Element ns prefix is
                    empty string
           Product: Axis
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Basic Architecture
        AssignedTo: axis-dev@ws.apache.org
        ReportedBy: andrewv@iastate.edu


I am re-reporting bug 4865 from Apache SOAP, which was resolved invalid.  
Oracle's DOM implementation returns the empty string for Node.getPrefix() when 
you create an element with no prefix.  For all I know, this is wrong.  *But*, 
it creates problems when using DOM2Writer to print an Oracle DOM Element, and 
those problems could easily be solved as suggested in Apache SOAP bug 4865.  
An Oracle DOM element created with no prefix gets printed like this:

<Name xmlns:="" ...... />

Note the colon.  Isn't this invalid XML?  Wouldn't it be OK to add an extra 
test in DOM2Writer that skips the colon if the prefix is the empty string?

Sorry to push this if it's not considered a bug, but I got no response from 
axis-dev one way or the other...