<User> <name>Server01</name> <password>200</password> <Items/> </Robot>
想要达到上面的这种转换格式,可以怎么操作?就是User对象里面,值为空的,就只要一边的<Items>
收起
做个判断就好了
报告相同问题?