<div id="main_contents">
            <div style=" background-color:rgb(155,189,000);  left:466.5px; top:119.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:71"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">71</div></div>
<div style=" background-color:rgb(155,189,000);  left:466.5px; top:152.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:76"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">76</div></div>
<div style=" background-color:rgb(155,189,000);  left:466.5px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:77"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">77</div></div>
<div style=" background-color:rgb(155,189,000);  left:466.5px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:94"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">94</div></div>
<div style=" background-color:rgb(155,189,000);  left:466.5px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:95"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">95</div></div>
<div style=" background-color:rgb(155,189,000);  left:466.5px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:112"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">112</div></div>
<div style=" background-color:rgb(155,189,000);  left:504px; top:119.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:72"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">72</div></div>
<div style=" background-color:rgb(155,189,000);  left:504px; top:152.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:75"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">75</div></div>
<div style=" background-color:rgb(155,189,000);  left:504px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:78"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">78</div></div>
<div style=" background-color:rgb(155,189,000);  left:504px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:93"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">93</div></div>
<div style=" background-color:rgb(155,189,000);  left:504px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:96"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">96</div></div>
<div style=" background-color:rgb(155,189,000);  left:504px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:111"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">111</div></div>
<div style=" background-color:rgb(155,189,000);  left:541.5px; top:119.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:73"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">73</div></div>
<div style=" background-color:rgb(155,189,000);  left:541.5px; top:152.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:74"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">74</div></div>
<div style=" background-color:rgb(155,189,000);  left:541.5px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:79"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">79</div></div>
<div style=" background-color:rgb(155,189,000);  left:541.5px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:92"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">92</div></div>
<div style=" background-color:rgb(155,189,000);  left:541.5px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:97"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">97</div></div>
<div style=" background-color:rgb(155,189,000);  left:541.5px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:110"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">110</div></div>
<div style=" background-color:rgb(155,189,000);  left:579px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:80"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">80</div></div>
<div style=" background-color:rgb(155,189,000);  left:579px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:91"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">91</div></div>
<div style=" background-color:rgb(155,189,000);  left:579px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:98"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">98</div></div>
<div style=" background-color:rgb(155,189,000);  left:579px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:109"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">109</div></div>
<div style=" background-color:rgb(155,189,000);  left:616.5px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:81"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">81</div></div>
<div style=" background-color:rgb(155,189,000);  left:616.5px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:90"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">90</div></div>
<div style=" background-color:rgb(155,189,000);  left:616.5px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:99"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">99</div></div>
<div style=" background-color:rgb(155,189,000);  left:616.5px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:108"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">108</div></div>
<div style=" background-color:rgb(155,189,000);  left:654px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:82"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">82</div></div>
<div style=" background-color:rgb(155,189,000);  left:654px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:89"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">89</div></div>
<div style=" background-color:rgb(155,189,000);  left:654px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:100"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">100</div></div>
<div style=" background-color:rgb(155,189,000);  left:654px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:107"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">107</div></div>
<div style=" background-color:rgb(155,189,000);  left:691.5px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:83"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">83</div></div>
<div style=" background-color:rgb(155,189,000);  left:691.5px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:88"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">88</div></div>
<div style=" background-color:rgb(155,189,000);  left:691.5px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:101"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">101</div></div>
<div style=" background-color:rgb(155,189,000);  left:691.5px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:106"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">106</div></div>
<div style=" background-color:rgb(155,189,000);  left:729px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:84"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">84</div></div>
<div style=" background-color:rgb(155,189,000);  left:729px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:87"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">87</div></div>
<div style=" background-color:rgb(155,189,000);  left:729px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:102"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">102</div></div>
<div style=" background-color:rgb(155,189,000);  left:729px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:105"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">105</div></div>
<div style=" background-color:rgb(245,234,040);  left:766.5px; top:197.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:85"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 11; color: 0033FF; ">85</div></div>
<div style=" background-color:rgb(245,234,040);  left:766.5px; top:230.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:86"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 11; color: 0033FF; ">86</div></div>
<div style=" background-color:rgb(155,189,000);  left:766.5px; top:275.8px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:103"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">103</div></div>
<div style=" background-color:rgb(155,189,000);  left:766.5px; top:308.3px;"><img width="34" height="28" src="./images/main/2.gif" alt="좌석번호:104"><div style="WIDTH:34px; height:28px; top:9px;  font-family:굴림체; font-size: 14; color: #003366; ">104</div></div>
         </div>


현재 이 내용파싱까지는 성공했는데요...

이것을 edt2에 담은다음후의 소스입니다.
List<Element> div1 = source2.getAllElements(HTMLElementName.DIV); 
Element divstyle = null;
Element source3 = null;
 

          if(div1.get(i).getAttributeValue("id").equals("main_contents")){
         
          source3 = div1.get(i);
          edt2.setText(source3.toString());
          
          div1 = source3.getAllElements(HTMLElementName.DIV);
    
          }
          
          }catch(Exception e)
          {
          continue;
          }

        }
        for(int i2=0; i2 < div1.size() ; i2++){
        try{           
          if(source3.getAttributeValue("style").indexOf("background-color") > -1){
         edt1.setText(Integer.toString(source3.toString().indexOf("background-color")));
          }
          else{
          edt1.setText("failed");
          }
        }
          catch(Exception e){
          continue;
          }
        }
        }


분명 마지막 포문을 돌고나면 edt1 에 성공적으로 추출을 하면 index값이, 안되더라도 failed 라는 문구를 출력하게 했는데요 아무값도 출력되지 않네요 ㅠ 도와주세요!