E
E
e1s2015-11-04 23:12:34
VBScript
e1s, 2015-11-04 23:12:34

How to cut xml into parts?

There is an xml file with the following structure

<root-tag>
  <first-tag>
    <second-tag>
      <item id=1>
        <a></a>
        <b></b>
        <c></c>
      </item>
      <item id=2>
        <a></a>
        <b></b>
        <c></c>
      </item>
      <item id=3>
        <a></a>
        <b></b>
        <c></c>
      </item>
    </second-tag>
  </first-tag>
</root-tag>

How can I cut it so that we get several xml files that contain only one item tag, those from the example will get three xml views
<root-tag>
  <first-tag>
    <second-tag>
      <item id=1>
        <a></a>
        <b></b>
        <c></c>
      </item>
    </second-tag>
  </first-tag>
</root-tag>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question