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 "hellozengsong@gmail" <he...@gmail.com> on 2013/09/10 03:29:50 UTC

XML Format

<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