請幫助我使用java 一個棘手的算法將大型html文件拆分爲多個html文件。我試過高達limit.please幫我如何根據java中的字符長度將HTML文件分割爲多個
<?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>
這是根據的
計數我的HTML文件中的一些文本
HTML文件應該被分裂!
對於我們應該如何拆分HTML,您有任何「標準」嗎? 一個例子肯定會有所幫助。 – Incognito
問題更新 – jenuine