please help me to split a large html file to multiple html's using java a tricky algorithm . I've tried up to a limit.please help me
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="template.css" rel="stylesheet" type="text/css"/>
<link href="page-template.xpgt" rel="stylesheet" type="application/vnd.adobe-page-template+xml"/>
</head>
<body>
<div class="story">
<p class="cn">2</p>
<p class="img"><img src="images/common.jpg" alt=""/></p>
<p class="ct"> some text!</p>
<p class="tx"><span class="dropcap"> some text</span> some text!</p>
<p class="tx"> some text!</p>
<p class="img"><img src="images/ch02-fig1.jpg" alt=""/></p>
<p class="tx"> some text some text some text some text.</p>
<p class="img"><img src="images/ch02-fig2.jpg" alt=""/></p>
<p class="tx"> some text some text some text some text </p>
<p class="tx"> some text some text some text </p>
<p class="tx"> some text some text some text some text.</p>
<p class="img"><img src="images/ch02-fig3.jpg" alt=""/></p>
<p class="tx"> some text!</p>
<p class="tx">
</p>
</div>
</body>
</html>
this is my html file according to the count of of
some text
html file should be splitted !