axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Sosnoski <...@sosnoski.com>
Subject Re: [axis2] Writing an empty element?
Date Wed, 31 Aug 2005 16:25:51 GMT
Aleksander Slominski wrote:

>
> please pull StAX RI from SVN (http://stax.codehaus.org/Home) and build 
> jar file (ant).
>
> then if you run test program (below) it should be producing this:
>
> Created not using repairing :-
> <?xml version='1.0' encoding='utf-8'?><env:Envelope 
> xmlns:env="http://www.w3.org/2003/05/soap-envelope" 
> xmlns:test="http://someTestUri"><env:Body><test foo="bar"/><test 
> foo="bar"></test><test foo="bar"> </test></env:Body></env:Envelope>
> Created  using repairing :-
> <?xml version='1.0' encoding='utf-8'?><env:Envelope 
> xmlns:env="http://www.w3.org/2003/05/soap-envelope" 
> xmlns:test="http://someTestUri" xmlns:test="http://someTestUri" 
> xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><test 
> foo="bar"/><test foo="bar"></test><test foo="bar"> 
> </test></env:Body></env:Envelope>
>
Maybe I missed something in this exchange, Alex, but the second 
(repairing) version appears to be bad XML - the xmlns:test 
attribute/namespace declaration appears twice on the env:Envelope start tag.

  - Dennis

Mime
View raw message