java中能用map创建xml格式的报文吗?如何创建?
如以下格式:<Boc_App><InsuranceNo>868768</InsuranceNo><BatchFlag>01</BatchFlag><TaskCount>0...
如以下格式:
<Boc_App>
<InsuranceNo>868768</InsuranceNo><BatchFlag>01</BatchFlag><TaskCount>01</TaskCount><TaskDivide>02</TaskDivide><IdenImagCla>02</IdenImagCla><OrgNo>32000020</OrgNo>
<peratNo>0002107</OperatNo>
<Folder>
<FolderId>1</FolderId>
<FolderName>中国</FolderName>
<Folder>
<FolderId>1.1</FolderId>
<FolderName>广州</FolderName>
</Folder>
<Folder>
<FolderId>1.2</FolderId>
<FolderName>上海</FolderName>
</Folder>
</Folder>
</Boc_App> 展开
<Boc_App>
<InsuranceNo>868768</InsuranceNo><BatchFlag>01</BatchFlag><TaskCount>01</TaskCount><TaskDivide>02</TaskDivide><IdenImagCla>02</IdenImagCla><OrgNo>32000020</OrgNo>
<peratNo>0002107</OperatNo>
<Folder>
<FolderId>1</FolderId>
<FolderName>中国</FolderName>
<Folder>
<FolderId>1.1</FolderId>
<FolderName>广州</FolderName>
</Folder>
<Folder>
<FolderId>1.2</FolderId>
<FolderName>上海</FolderName>
</Folder>
</Folder>
</Boc_App> 展开
1个回答
2013-12-25
展开全部
可以,将map转成一个一个的XML节点
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询