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/07/02 10:49:32 UTC
DO NOT REPLY [Bug 21267] New: -
deserialization adds 'xmlns:xml' namespace declaration to element
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=21267>.
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=21267
deserialization adds 'xmlns:xml' namespace declaration to element
Summary: deserialization adds 'xmlns:xml' namespace declaration
to element
Product: Axis
Version: 1.1
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Serialization/Deserialization
AssignedTo: axis-dev@ws.apache.org
ReportedBy: patrick@zync.at
i have a soap/http web service response (document/literal, message style) that
contains the following element. it goes over the wire like this (observed using
the tcpmonitor application):
<XMLContent xml:space="preserve">
...
</XMLContent>
however, when the response is accessed as a DOM element in the axis
client, the XMLContent element contains a namespace declaration of the
form: xmlns:xml="http://www.w3.org/XML/1998/namespace".
when serialized to a textual form, the resulting xml causes problems with
certain tools (e.g., internet explorer won't display the file).
there is a related bug describing a similar problem:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9963
please not that this bug is different from the above in that the namespace
delcaration is somehow added to the DOM during deserialization of the
response, i.e. not inserted by the DOM2Writer.