axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19001] New: - DOM2Writer prints xmlns:="" when Element ns prefix is empty string
Date Mon, 14 Apr 2003 15:45:56 GMT
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...

Mime
View raw message