axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hellozengsong@gmail" <hellozengs...@gmail.com>
Subject XML Format
Date Tue, 10 Sep 2013 01:29:50 GMT
<ns:getUserByParamResponse xmlns:ns=http://impl.service.my.com.cn xmlns:ax21=http://entity.my.com.cn/xsd>
<return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:User">
<name>zs</name>
<username>shun</username>
<password>123456</password>
<email>resjd@gmail.com</subcompany>
<userId>1</userId>
</return>
<return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:User">
<name>res</name>
<username>tygs</username>
<password>123456</password>
<email>esd@gmail.com</subcompany>
<userId>2</userId>
</return>
</ns:getUserByParamResponse>
Hello ,The XML above changed to 
<root>
<userlist>
<user>
<name>zs</name>
<username>shun</username>
<password>123456</password>
<email>resjd@gmail.com</subcompany>
<userId>1</userId>
</user>
<user>
<name>res</name>
<username>tygs</username>
<password>123456</password>
<email>esd@gmail.com</subcompany>
<userId>2</userId>
</user>
</userlist>
</root>
Ask how in Java to achieve my XML format ?



hellozengsong@gmail
Mime
View raw message