public void Test1()
		{
			HtmlParser parser = new HtmlParser();
			//                            01234567890
			HtmlElement e = parser.Parse("<aaa></aaa>");
			
			Assert.AreEqual("aaa", e.Children[0].Name);
		}
		public void Test17()
		{
			HtmlParser parser = new HtmlParser();
			HtmlElement e = parser.Parse(
				"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">" + Environment.NewLine + 
				"<html><head>" + Environment.NewLine + 
				"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;CHARSET=euc-jp\">" + Environment.NewLine + 
				"<META NAME=\"Robots\" CONTENT=\"noindex, nofollow\">" + Environment.NewLine + 
				"<LINK Type=\"text/css\" Rel=\"stylesheet\" Href=\"../css/body_otona.css\">" + Environment.NewLine + 
				"<LINK Type=\"text/css\" Rel=\"stylesheet\" Href=\"../css/list_otona.css\">" + Environment.NewLine + 
				"<title>船橋市図書館 WebOPAC</title>" + Environment.NewLine + 
				Environment.NewLine + 
				"<SCRIPT LANGUAGE=\"JavaScript\">" + Environment.NewLine + 
				"<!--" + Environment.NewLine + 
				"function Pageminus(n){" + Environment.NewLine + 
				"  if(n==0){" + Environment.NewLine + 
				"     document.InForm0.page.value--;" + Environment.NewLine + 
				"     document.InForm0.submit();" + Environment.NewLine + 
				"  }" + Environment.NewLine + 
				"  else{" + Environment.NewLine + 
				"     document.InForm1.page.value--;" + Environment.NewLine + 
				"     document.InForm1.submit();" + Environment.NewLine + 
				"  }" + Environment.NewLine + 
				"}" + Environment.NewLine + 
				"function Pageplus(n){" + Environment.NewLine + 
				"  if(n==0){" + Environment.NewLine + 
				"     document.InForm0.page.value++;" + Environment.NewLine + 
				"     document.InForm0.submit();" + Environment.NewLine + 
				"  }" + Environment.NewLine + 
				"  else{" + Environment.NewLine + 
				"     document.InForm1.page.value++;" + Environment.NewLine + 
				"     document.InForm1.submit();" + Environment.NewLine + 
				"  }" + Environment.NewLine + 
				"}" + Environment.NewLine + 
				"//-->" + Environment.NewLine + 
				"</SCRIPT>" + Environment.NewLine + 
				"</head>" + Environment.NewLine + 
				"<body>" + Environment.NewLine + 
				"<div align=\"center\">" + Environment.NewLine + 
				"<table width=\"738\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\" bgcolor=\"#eeeeee\">" + Environment.NewLine + 
				"    <tr bgcolor=\"#a0b8c8\">" + Environment.NewLine + 
				Environment.NewLine + 
				"    <td>" + Environment.NewLine + 
				"        <b><font color=\"white\">船橋市図書館</font></b></td>" + Environment.NewLine + 
				"    </tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</div>" + Environment.NewLine + 
				"<center>" + Environment.NewLine + 
				"<table width=738>" + Environment.NewLine + 
				"  <tr>" + Environment.NewLine + 
				"    <td width=147 align=center>" + Environment.NewLine + 
				"      <a href=\"../cgi-bin/index?0\">" + Environment.NewLine + 
				Environment.NewLine + 
				"      <img src=\"../image/obtn_keyword.gif\" border=0>" + Environment.NewLine + 
				"      <font class=SEL_LIST>キーワードで検索</font></a></td>" + Environment.NewLine + 
				"    <td width=147 align=center>" + Environment.NewLine + 
				"      <a href=\"../cgi-bin/select?0\">" + Environment.NewLine + 
				"      <img src=\"../image/obtn_jyoken.gif\" border=0>" + Environment.NewLine + 
				"      <font class=SEL_LIST>条件指定で検索</font></a></td>" + Environment.NewLine + 
				"    <td width=147 align=center>" + Environment.NewLine + 
				"      <a href=\"../cgi-bin/selnew?0&7\">" + Environment.NewLine + 
				Environment.NewLine + 
				"      <img src=\"../image/s-btn.gif\" border=0>" + Environment.NewLine + 
				"      <font class=SEL_LIST>一覧資料から<br>検索</font></a></td>" + Environment.NewLine + 
				"<td width=147 align=center>" + Environment.NewLine + 
				"<a href=\"../cgi-bin/selndc?0\">" + Environment.NewLine + 
				"<img src=\"../image/obtn_bunrui.gif\" border=0>" + Environment.NewLine + 
				"<font class=SEL_LIST>分類表から検索</font></a></td>" + Environment.NewLine + 
				"<td width=147 align=center>" + Environment.NewLine + 
				"<a href=\"../cgi-bin/seltitle?type=0&allc=&page=1&count=25&title=&before=\">" + Environment.NewLine + 
				"<img src=\"../image/z-btn.gif\"  border=0>" + Environment.NewLine + 
				"<font class=SEL_LIST>雑誌タイトル<br>から検索</font></a></td></tr>" + Environment.NewLine + 
				Environment.NewLine + 
				"  </tr>" + Environment.NewLine + 
				"  <tr>" + Environment.NewLine + 
				"    <td colspan=5><hr size=3></td></tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</center>" + Environment.NewLine + 
				"<div align=center>" + Environment.NewLine + 
				"<table width=738>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"<td align=center>" + Environment.NewLine + 
				"<font class=TITLE>検&nbsp;索&nbsp;結&nbsp;果&nbsp;一&nbsp;覧</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</div>" + Environment.NewLine + 
				"<div align=center>" + Environment.NewLine + 
				"<table width=500>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"<td align=left>" + Environment.NewLine + 
				"<font class=MIDASHI1>検索結果のタイトルがリンクされていれば、さらに詳細を見ることができます。</font></td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"<td align=left>" + Environment.NewLine + 
				"<font class=MIDASHI1>検索結果の著者がリンクされていれば、その著者の他の資料の一覧を表示できます。</font></td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</div>" + Environment.NewLine + 
				Environment.NewLine + 
				"<form method=GET action=\"../cgi-bin/sellist\" onSubmit=\"return FormSubmit();\" name=InForm0>" + Environment.NewLine + 
				"<input type=hidden value=0   name=type>" + Environment.NewLine + 
				"<input type=hidden value=308" + Environment.NewLine + 
				"   name=allc>" + Environment.NewLine + 
				"<input type=hidden value=1 name=page>" + Environment.NewLine + 
				"<div align=center>" + Environment.NewLine + 
				"<table width=700>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"<td align=center width=400>" + Environment.NewLine + 
				"<font class=CONT>検索結果(308件&nbsp;&nbsp;1/31ページ)</font</td>" + Environment.NewLine + 
				"<td align=left width=173>" + Environment.NewLine + 
				"</td>" + Environment.NewLine + 
				"<td align=left width=173>" + Environment.NewLine + 
				"<a href=\"javascript:Pageplus(0);\">" + Environment.NewLine + 
				"<img src=\"../image/tugi-kekka.gif\" border=0>" + Environment.NewLine + 
				"<font class=SEL_LIST>次の結果</font></a>" + Environment.NewLine + 
				Environment.NewLine + 
				"</td>" + Environment.NewLine + 
				"<input type=hidden value=\"筒井康隆\" name=keyword>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=title>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=author>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=publish>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=isbn>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=pubydate1>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=pubydate3>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=bunrui>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=syubetu>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=kan>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=media>" + Environment.NewLine + 
				"<input type=hidden value=\"10\" name=count>" + Environment.NewLine + 
				Environment.NewLine + 
				"<input type=hidden value=\"title\" name=order>" + Environment.NewLine + 
				"<input type=hidden value=\"index\" name=before>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=authorid>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=opacfile>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=titleid>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=n2>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=n2>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</div>" + Environment.NewLine + 
				"</form>" + Environment.NewLine + 
				"<div align=\"center\">" + Environment.NewLine + 
				"<table width=738 border=0>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"    <td align=left><font class=MIDASHI2>(1ページ<font color=\"red\"><b>[10]</b></font>件表示しています)</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"    </font></td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</div>" + Environment.NewLine + 
				"<div align=\"center\">" + Environment.NewLine + 
				"<table width=738 border=0>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"    <td align=left><font class=MIDASHI2>" + Environment.NewLine + 
				"    表示件数を変更するには、右の表示件数をクリックしてください。" + Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     10</a>" + Environment.NewLine + 
				"          " + Environment.NewLine + 
				Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=25&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     25</a>" + Environment.NewLine + 
				"          " + Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=50&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     50</a>" + Environment.NewLine + 
				"          " + Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=100&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     100</a>" + Environment.NewLine + 
				"          " + Environment.NewLine + 
				"    <td align=right><font class=MIDASHI2><img src=\"../image/icon_uloan.gif\">は貸出中です。</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"    </font></td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"<div align=\"center\">" + Environment.NewLine + 
				"<table width=738 border=2>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"<th align=center bgcolor=#9999cc width=4%><font class=MIDASHI2>番号</font></th>" + Environment.NewLine + 
				"<th align=center bgcolor=#ff9999 width=42%><font class=MIDASHI2>タイトル</font></th>" + Environment.NewLine + 
				"<th align=center bgcolor=#ffcc66 width=17%><font class=MIDASHI2>著者名</font></th>" + Environment.NewLine + 
				"<th align=center bgcolor=#99cc66 width=\"20%\"><font class=MIDASHI2>出版者</font></th>" + Environment.NewLine + 
				"<th align=center bgcolor=#339999 width=\"7%\"><font class=MIDASHI2>出版年</font></th>" + Environment.NewLine + 
				Environment.NewLine + 
				"<th align=center bgcolor=#9999cc width=\"4%\"><font class=MIDASHI2>状態</font></th>" + Environment.NewLine + 
				"<th align=center bgcolor=#ff9999 width=\"6%\"><font class=MIDASHI2>種別</font></th>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td  align=right><font class=COL>1</font></td>" + Environment.NewLine + 
				"<td  align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=023463078&type=0&count=10&before=index\">愛のひだりがわ</a></font></td>" + Environment.NewLine + 
				"<td  align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>岩波書店</font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>2002.01</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td  align=left > </td>" + Environment.NewLine + 
				"<td  align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=right><font class=COL>2</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=012815270&type=0&count=10&before=index\">悪と異端者</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>中央公論社</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>1995.10</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left > </td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td  align=right><font class=COL>3</font></td>" + Environment.NewLine + 
				"<td  align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=012218905&type=0&count=10&before=index\">朝のガスパール</a></font></td>" + Environment.NewLine + 
				"<td  align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>朝日新聞社</font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>1992.08</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td  align=left > </td>" + Environment.NewLine + 
				"<td  align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=right><font class=COL>4</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=240090464&type=0&count=10&before=index\">朝のガスパール</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>新潮社</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>1995.08</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left > </td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td  align=right><font class=COL>5</font></td>" + Environment.NewLine + 
				"<td  align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=022042824&type=0&count=10&before=index\">あるいは酒でいっぱいの海</a></font></td>" + Environment.NewLine + 
				"<td  align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>集英社</font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>1977</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td  align=left > </td>" + Environment.NewLine + 
				"<td  align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=right><font class=COL>6</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=041205758&type=0&count=10&before=index\">あるいは酒でいっぱいの海</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>集英社</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>1979</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left > </td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td  align=right><font class=COL>7</font></td>" + Environment.NewLine + 
				"<td  align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=030078695&type=0&count=10&before=index\">アルファルファ作戦</a></font></td>" + Environment.NewLine + 
				"<td  align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>中央公論社</font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>1976</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td  align=left > </td>" + Environment.NewLine + 
				"<td  align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=right><font class=COL>8</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=040903601&type=0&count=10&before=index\">アルファルファ作戦</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>中央公論社</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>1978</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left > </td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td  align=right><font class=COL>9</font></td>" + Environment.NewLine + 
				"<td  align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=041182064&type=0&count=10&before=index\">暗黒世界のオデッセイ</a></font></td>" + Environment.NewLine + 
				"<td  align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>新潮社</font></td>" + Environment.NewLine + 
				"<td  align=left ><font class=COL>1982</font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td  align=left > </td>" + Environment.NewLine + 
				"<td  align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"<tr align=center>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=right><font class=COL>10</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left><font class=COL><a href=\"../cgi-bin/detail?biblioid=820259976&type=0&count=10&before=index\">暗黒世界のオデッセイ−筒井康隆一人十人全集</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left >" + Environment.NewLine + 
				"<font class=COL><a href=\"../cgi-bin/sellist?type=0&allc=&page=1&keyword=&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=&before=index&authorid=00000328&opacfile=&titleid=\">" + Environment.NewLine + 
				"筒井康隆</a></font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL>晶文社</font></td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left ><font class=COL> </font></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=left > </td>" + Environment.NewLine + 
				"<td bgcolor=#FFFFCC align=center>一般</td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</div>" + Environment.NewLine + 
				"<div align=\"center\">" + Environment.NewLine + 
				"<table width=738 border=0>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"    <td align=left><font class=MIDASHI2>" + Environment.NewLine + 
				"    表示件数を変更するには、右の表示件数をクリックしてください。" + Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=10&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     10</a>" + Environment.NewLine + 
				Environment.NewLine + 
				"          " + Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=25&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     25</a>" + Environment.NewLine + 
				"          " + Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=50&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     50</a>" + Environment.NewLine + 
				"          " + Environment.NewLine + 
				"<a href=\"../cgi-bin/sellist?type=0&allc=308" + Environment.NewLine + 
				"&page=1&keyword=%C5%FB%B0%E6%B9%AF%CE%B4&sentaku=and&title=&sentaku=and&author=&sentaku=and&publish=&sentaku=and&isbn=&pubydate1=&pubydate3=&bunrui=&syubetu=&kan=&media=&count=100&order=title&before=index&authorid=&opacfile=&titleid=\">" + Environment.NewLine + 
				"     100</a>" + Environment.NewLine + 
				Environment.NewLine + 
				"          " + Environment.NewLine + 
				"    <td align=right><font class=MIDASHI2><img src=\"../image/icon_uloan.gif\">は貸出中です。</font></td>" + Environment.NewLine + 
				"    </font></td>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"<form method=GET action=\"../cgi-bin/sellist\" onSubmit=\"return FormSubmit();\" name=InForm1>" + Environment.NewLine + 
				"<input type=hidden value=0   name=type>" + Environment.NewLine + 
				"<input type=hidden value=308" + Environment.NewLine + 
				"   name=allc>" + Environment.NewLine + 
				"<input type=hidden value=1 name=page>" + Environment.NewLine + 
				"<div align=center>" + Environment.NewLine + 
				"<table width=700>" + Environment.NewLine + 
				"<tr>" + Environment.NewLine + 
				"<td align=center width=400>" + Environment.NewLine + 
				"<font class=CONT>検索結果(308件&nbsp;&nbsp;1/31ページ)</font</td>" + Environment.NewLine + 
				Environment.NewLine + 
				"<td align=left width=173>" + Environment.NewLine + 
				"</td>" + Environment.NewLine + 
				"<td align=left width=173>" + Environment.NewLine + 
				"<a href=\"javascript:Pageplus(1);\">" + Environment.NewLine + 
				"<img src=\"../image/tugi-kekka.gif\" border=0>" + Environment.NewLine + 
				"<font class=SEL_LIST>次の結果</font></a>" + Environment.NewLine + 
				"</td>" + Environment.NewLine + 
				"<input type=hidden value=\"筒井康隆\" name=keyword>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=title>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=author>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=publish>" + Environment.NewLine + 
				"<input type=hidden value=\"and\" name=sentaku>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=isbn>" + Environment.NewLine + 
				Environment.NewLine + 
				"<input type=hidden value=\"\" name=pubydate1>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=pubydate3>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=bunrui>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=syubetu>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=kan>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=media>" + Environment.NewLine + 
				"<input type=hidden value=\"10\" name=count>" + Environment.NewLine + 
				"<input type=hidden value=\"title\" name=order>" + Environment.NewLine + 
				"<input type=hidden value=\"index\" name=before>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=authorid>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=opacfile>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=titleid>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=n2>" + Environment.NewLine + 
				"<input type=hidden value=\"\" name=n2>" + Environment.NewLine + 
				"</tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</div>" + Environment.NewLine + 
				Environment.NewLine + 
				"</form>" + Environment.NewLine + 
				"<center>" + Environment.NewLine + 
				"<table width=738>" + Environment.NewLine + 
				"  <tr>" + Environment.NewLine + 
				"    <td width=0></td>" + Environment.NewLine + 
				"    <td width=0></td>" + Environment.NewLine + 
				"    <td width=0></td>" + Environment.NewLine + 
				"    <td width=0></td>" + Environment.NewLine + 
				"    <td width=0></td>" + Environment.NewLine + 
				"  </tr>" + Environment.NewLine + 
				Environment.NewLine + 
				"  <tr>" + Environment.NewLine + 
				"    <td colspan=5><hr size=3></td></tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</center>" + Environment.NewLine + 
				"<center>" + Environment.NewLine + 
				"<table width=\"700\">" + Environment.NewLine + 
				"    <tr><td align=\"left\" class=\"ENDWARNING\">" + Environment.NewLine + 
				"        " + Environment.NewLine + 
				"    </td></tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</center>" + Environment.NewLine + 
				"<center>" + Environment.NewLine + 
				"<table width=270>" + Environment.NewLine + 
				"    <tr>" + Environment.NewLine + 
				Environment.NewLine + 
				"        <td align=center width=135>" + Environment.NewLine + 
				"            <a href=\"http://www.lib.city.funabashi.chiba.jp/\">" + Environment.NewLine + 
				"            <IMG src=\"../image/home.gif\" border=0 width=32 height=32>" + Environment.NewLine + 
				"            <font class=SEL_LIST>ホームに戻る</font></a></td>" + Environment.NewLine + 
				"    <td align=center width=145>" + Environment.NewLine + 
				"    <a href=\"../cgi-bin/index?0\">" + Environment.NewLine + 
				"        <img src=\"../image/before.gif\" width=32 height=32 border=0>" + Environment.NewLine + 
				"        <font class=SEL_LIST>前の画面に戻る</font></a></td>" + Environment.NewLine + 
				Environment.NewLine + 
				"    </tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</center>" + Environment.NewLine + 
				"<center>" + Environment.NewLine + 
				"<table width=\"700\">" + Environment.NewLine + 
				"    <tr><td align=\"left\" class=\"ENDWARNING\">" + Environment.NewLine + 
				"        このホームページは、InternetExplorer3.02、またはNetscapeNavigator4.01以上でご利用ください。" + Environment.NewLine + 
				"    </td></tr>" + Environment.NewLine + 
				"</table>" + Environment.NewLine + 
				"</center>" + Environment.NewLine + 
				"</body>" + Environment.NewLine + 
				"<head>" + Environment.NewLine + 
				"</head>" + Environment.NewLine + 
				"</html>");

			IList<HtmlElement> tables = e.GetElementsByTagName("table");
		}
		public void エラー修正しない2()
		{
			HtmlParser parser = new HtmlParser();
			HtmlElement e = parser.Parse("<aaa><bbb></bbb</aaa>", false);
		}
		public void 終了タグが多い場合は無視する()
		{
			HtmlParser parser = new HtmlParser();
			//                            0         1         2         3         4          5         6          7         8          9         0          1         2         3         4         5         6         7         8          
			//                            012345678901234567890123456789012345678901234 5678901234567890123 45678901234567890 12345678901234567890123456 78901234567890123456789012345678901234567890123456789012345678901234567890123456789
			HtmlElement e = parser.Parse("<aaa><bbb></bbb></bbb></aaa>");
			
			Assert.AreEqual("aaa", e.Children[0].Name);
			Assert.AreEqual("bbb", e.Children[0].Children[0].Name);
		}
		public void 終了タグのGreaterThanが欠けている場合は()
		{
			HtmlParser parser = new HtmlParser();
			//                            0         1         2         3         4          5         6          7         8          9         0          1         2         3         4         5         6         7         8          
			//                            012345678901234567890123456789012345678901234 5678901234567890123 45678901234567890 12345678901234567890123456 78901234567890123456789012345678901234567890123456789012345678901234567890123456789
			HtmlElement e = parser.Parse("<aaa><bbb></bbb</aaa>");
			
			Assert.AreEqual("aaa", e.Children[0].Name);
			Assert.AreEqual("bbb", e.Children[0].Children[0].Name);
		}
		public void Test15()
		{
			HtmlParser parser = new HtmlParser();
			//                            01234567890123456789012345678901
			HtmlElement e = parser.Parse("    <td width=147 align=center>      </td>");

			Assert.AreEqual("td", e.Children[0].Name);
			Assert.AreEqual("147", e.Children[0].Attributes["width"].Value);
			Assert.AreEqual("center", e.Children[0].Attributes["align"].Value);
		}
		public void Test16()
		{
			HtmlParser parser = new HtmlParser();
			//                            0         1         2         3         4          5         6          7         8          9         0          1         2         3         4         5         6         7         8          
			//                            012345678901234567890123456789012345678901234 5678901234567890123 45678901234567890 12345678901234567890123456 78901234567890123456789012345678901234567890123456789012345678901234567890123456789
			HtmlElement e = parser.Parse("    <td width=147 align=center>      <a href=\"../cgi-bin/index?0\">      <img src=\"../image/obtn_keyword.gif\" border=0>   <font class=SEL_LIST>キーワードで検索</font></a></td>");

			Assert.AreEqual("td", e.Children[0].Name);
			Assert.AreEqual("147", e.Children[0].Attributes["width"].Value);
			Assert.AreEqual("center", e.Children[0].Attributes["align"].Value);
			Assert.AreEqual("a", e.Children[0].Children[0].Name);
			Assert.AreEqual("../cgi-bin/index?0", e.Children[0].Children[0].Attributes["href"].Value);
			Assert.AreEqual("img", e.Children[0].Children[0].Children[0].Name);
			Assert.AreEqual("../image/obtn_keyword.gif", e.Children[0].Children[0].Children[0].Attributes["src"].Value);
			Assert.AreEqual("font", e.Children[0].Children[0].Children[1].Name);
			Assert.AreEqual("SEL_LIST", e.Children[0].Children[0].Children[1].Attributes["class"].Value);
			Assert.AreEqual("キーワードで検索", e.Children[0].Children[0].Children[1].Children[0].Text);
			Assert.AreEqual("キーワードで検索", e.InnerText);
		}
		public void Test14()
		{
			HtmlParser parser = new HtmlParser();
			//                            01234567890123456 78901234567 8901
			HtmlElement e = parser.Parse("<SCRIPT LANGUAGE=\"JavaScript\"><!--function Pageminus(n){  if(n==0){//--></SCRIPT>");

			Assert.AreEqual("SCRIPT", e.Children[0].Name);
			Assert.AreEqual(1, e.Children[0].Attributes.Count);
			Assert.AreEqual("JavaScript", e.Children[0].Attributes["LANGUAGE"].Value);
		}
		public void Test10()
		{
			HtmlParser parser = new HtmlParser();
			//                            0123456789012345678901
			HtmlElement e = parser.Parse("<aaa>AAA<bbb>BBB</bbb></aaa>");
			Assert.AreEqual("aaa", e.Children[0].Name);
			Assert.AreEqual("AAABBB", e.Children[0].InnerText);
		}
		public void Test8()
		{
			HtmlParser parser = new HtmlParser();
			//                            0123456789012345678901
			HtmlElement e = parser.Parse("<aaa>AA1<bbb>BBB</bbb> <ccc>CCC</ccc>AA2</aaa>");
			Assert.AreEqual("AA1", e.Children[0].Children[0].Text);
			Assert.AreEqual("bbb", e.Children[0].Children[1].Name);
			Assert.AreEqual("BBB", e.Children[0].Children[1].Children[0].Text);
			Assert.AreEqual("ccc", e.Children[0].Children[2].Name);
			Assert.AreEqual("CCC", e.Children[0].Children[2].Children[0].Text);
			Assert.AreEqual("AA2", e.Children[0].Children[3].Text);
		}
		public void Test6()
		{
			HtmlParser parser = new HtmlParser();
			//                            0123456789012345678901
			HtmlElement e = parser.Parse("<aaa>AAA</aaa> <bbb>BBB</bbb>");
			Assert.AreEqual("aaa", e.Children[0].Name);
			Assert.AreEqual("AAA", e.Children[0].Children[0].Text);
			Assert.AreEqual("bbb", e.Children[1].Name);
			Assert.AreEqual("BBB", e.Children[1].Children[0].Text);
		}
		public void Test4()
		{
			HtmlParser parser = new HtmlParser();
			//                            0123456789012345678901
			HtmlElement e = parser.Parse("<aaa><bbb></bbb><ccc></ccc></aaa>");
			Assert.AreEqual("bbb", e.Children[0].Children[0].Name);
			Assert.AreEqual("ccc", e.Children[0].Children[1].Name);
		}