Hi All,

Is there a we could split an XML file based on tags.
For Ex,I have a variable which stores a set of XML files.
var result:
<xml>
<content>
</xml>
<xml>
<content>
</xml>
<xml>
<content>
</xml>
Now my requirement is that, I will have to split this XML file based on </xml> as separate variable.

As the length of the content is also not fixed, I am unable to use splitText method in JavaScript.

I appreciate your suggestions, to achieve this use case.

Thanks,
Gopal