如果文件大小超过10 MB,如何将Xml拆分为多个文件(动态). [英] How to Split Xml into Multiple Files(Dynamic) if the file size exceeds 10 MB.

查看:205
本文介绍了如果文件大小超过10 MB,如何将Xml拆分为多个文件(动态).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果文件大小超过10 MB,如何将Xml拆分为多个文件(动态).
Xml应该用适当的节点拆分,并且应该采用xml.
没有任何适当的节点,它不应从xml的中间分裂.
以下是我的xml结构.

How to Split Xml into Multiple Files(Dynamic) if the file size exceeds 10 MB .
THe Xml should be split with proper nodes and it should be welformed xml.
it should not split from the middle of the xml without any proper nodes.
the below one is my xml structure.

<claimsubmission>
 <Header>
   <first> abc </first>
 </Header>
<claim>
<encounter>
  <facid>1234 </facid>
</encounter>
   <activity>
<start> 1234</start>
  </activity>
   <observation>
      <type>2333</type>
    </observation>
</claim>
<claim>
<encounter>
  <facid>1234 </facid>
</encounter>
<activity>
<start> 1234</start>
  </activity>
   <observation>
      <type>2333<type>
    </type></type></observation>
</claim>
<claim>
<encounter>
  <facid>1234 </facid>
</encounter>
   <activity>
<start> 1234</start>
  </activity>
   <observation>
      
    </observation>
</claim>
</claimsubmission>



如果正在拆分,则应按以下方式拆分,而不是从中间拆分.
First.xml:



if it is splitting it should split in the below way not from middle.
First.xml:

<claimsubmission>
 <Header>
   <first> abc </first>
</Header>
<claim>
<encounter>
  <facid>1234 </facid>
</encounter>
   <activity>
<start> 1234</start>
  </activity>
   <observation>
       <Type>2355533</Type>
</observation>
</claim>
</claimsubmission>



Secondxml:



Secondxml:

<claimsubmission>
 <Header>
   <first> abc </first>
</Header>
<claim>
<Encounter>
  <facID>1234234 </facID>
</Encounter>
   <Activity>
<start> 2221234<start>
  </Activity>
   <observation>
      <Type>2355533</Type>
    </observation>
</claim>
</claimSubmission>



third.xml:



third.xml:

<claimsubmission>
 <Header>
   <first> abc </first>
</Header>
<claim>
<Encounter>
  <facID>1234234 </facID>
</Encounter>
   <Activity>
<start> 2221234<start>
  <Activity>
   <observation>
      <Type>2355533</Type>
    </observation>
</claim>
</claimSubmission>



four.xml



fourth.xml

<claimsubmission>
 <Header>
   <first> abc </first>
</Header>
<claim>
<encounter>
  <facid>1234234 </facid>
</encounter>
   <activity>
<start> 2221234<start>
  <activity>
   <observation>
      <type>2355533</type>
    </observation>
</claim>
</claimsubmission>

推荐答案

看看这个

这篇关于如果文件大小超过10 MB,如何将Xml拆分为多个文件(动态).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆