Many thanks for your cooperations.
I have decided to use xmlhtml instead of making my own html parser.

2013/12/25 akira kawata <a.kawashiro@gmail.com>
Hi, I am Akira.
I want to parse HTML file that is contain javascript.
But I cant come up with how to deal with script tag.
Is there anyone help me?

Details of probrem
HTML code I want to parse is like following

<html>
<script>
//<![CDATA[
<!-- -->
//]]>
</script>
</html>

Because '<' is used as normal character in the script region,
I can not use my HTML parser there.