How can i split an long XML-file into pieces with each a predefined different name?
Example this is my XML file pasted in one long XML, generated for testing. Now i have to split on envelope, each a new file.
<envelope>
<tag1>1</tag1>
<tag2>2</tag2>
<tag3>3</tag3>
</envelope>
<envelope>
<tag1>1</tag1>
<tag2>2</tag2>
<tag3>3</tag3>
</envelope>
<envelope>
<tag1>1</tag1>
<tag2>2</tag2>
<tag3>3</tag3>
</envelope>
I have already work with splits before just not like this where there is no begin and end tag for the entire xml.