Re: Re: response xml format <name xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:nil="true" /> Change <name><name>

"hellozengsong@gmail" <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <[email protected]>
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 <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.