<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>[email protected]</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>[email protected]</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>[email protected]</subcompany>
<userId>1</userId>
</user>
<user>
<name>res</name>
<username>tygs</username>
<password>123456</password>
<email>[email protected]</subcompany>
<userId>2</userId>
</user>
</userlist>
</root>
Ask how in Java to achieve my XML format ?



hellozengsong@gmail

Reply via email to