java—使用vtd xml或任何其他方法基于特定标记拆分xml文件

beq87vna  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(153)

下面是我要拆分的xml文件。我需要以这样的方式拆分这个xml文件:每个xml文件都有一个成员信息。现在我可以使用vtdxml来实现吗?
要拆分的邮件xml文件

This files can have hundreds of Members (I just took two members to understand the problem). 
Now this file must split in multiple xml files in such a way that each xml file have only one member information. Also the output must be in the form of List<String> where all individual xml files will be stored in the form of string.(I need to return the output in List<String> form).
The individual xml file should have (NoOfMembers = 1) and (TotalSalary = salary of that particular member).
The splits of above xml should be like these two.

第一个单独的xml

第二个单独的xml

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题