how to separate XML documents from the text file which containg multiple XML documents..

Example..

<Root>
 <sub1></sub1>
 <sub2></sub2>
</Root>
<Root>
</Root>
<Root>
</Root>

The above file comtains mutiple XML documents , i want to split dynamically using java. Can you please help some one..

Thanks
Ravi