You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "hellozengsong@gmail" <he...@gmail.com> on 2014/02/18 09:45:32 UTC

Re: Re: response xml format Change

No.
BeanUtil.getOMElement(new QName(""),list.toArray(),new QName(""), false, null ) generates XML Conversion :
<name xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nil="true" /> 

OMElement empty element auto format as:<name/>
my default xml empty element format:<name></name> 







hellozengsong@gmail

From: Chamila Wijayarathna
Date: 2014-01-21 03:17
To: java-user; hellozengsong
CC: java-dev
Subject: Re: response xml format <name xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nil="true" /> Change <name><name>
Hi,
Try using XSLT Transformatios [1]. It can be used to convert XML from one format to another.


1. http://www.w3schools.com/xsl/xsl_transformation.asp


Thank You



On Mon, Jan 20, 2014 at 2:25 PM, hellozengsong@gmail <he...@gmail.com> wrote:

I have an XML :
<ns:return>
<name xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nil="true" />
</ns:return>
I need to change the following format:
<ns:return>
<name></name>
</ns:return>
Unknown to any good solution ?



hellozengsong@gmail





-- 
Chamila Dilshan Wijayarathna,
SMIEEE, SMIESL,
Undergraduate,
Department of Computer Science and Engineering,
University of Moratuwa.