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 "Deepak Bhole (JIRA)" <ji...@apache.org> on 2006/02/15 20:25:09 UTC

[jira] Commented: (AXIS2-431) When I try to serialize OMElement it adds unnecessary xml declaration

    [ http://issues.apache.org/jira/browse/AXIS2-431?page=comments#action_12366529 ] 

Deepak Bhole commented on AXIS2-431:
------------------------------------

This issue is a combination of axis code and woodstox. The serialization code has checks when writing to stream, to make sure that when no namespace is given for OMElement, the element doesn't "accidentally" go under another element i.e. there is no default namespace. Woodstox has a default namespace/URI ="", which axis code treats as any other namespace, thus causing the 'xmlns=""' there. If bea-stax is used instead of woodstox, the output is: 

<axis2Element />

> When I try to serialize OMElement it adds unnecessary xml declaration
> ---------------------------------------------------------------------
>
>          Key: AXIS2-431
>          URL: http://issues.apache.org/jira/browse/AXIS2-431
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Reporter: Deepal Jayasinghe

>
> I created an OMelement programatically and then I called its serialize method by giving a Writer , but the out put has xml declaration with empty value, like below;
>  <axis2Element xmlns="">
>  <axis2Element>

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira