Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
문자열 : <table width="100%" align="center"/>
1. table의 width=100% OR align=center만 추출하는 경우
Document document =Jsoup.parse(htmlString);
document.select("table[width=100%],table[align=center]");
2. AND 연산(width=100%이고 align=center인 경우)
가. Elements tables = document.select("table[width=100%]").select("table[align=center]");
나. Elements element =document.select("table[align=center]");
element =element.select("table[width=100%]");
3. AND 연산(width=100%이고 align=center이고 table안에 문자열이 text인 경우)
Elements tables = document.select("table[width=100%].select("table[align=center]:contains(text)");
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
681 | dual table만들기 | 2014.05.16 | 1111 |
680 | 특정파일이 생성되어야 action이 실행되는 oozie job만들기(coordinator.xml) | 2014.05.20 | 1080 |
679 | source의 type을 spooldir로 하는 경우 해당 경로에 파일이 들어오면 파일단위로 전송함 | 2014.05.20 | 829 |
678 | hive에서 insert overwrite directory.. 로 하면 default column구분자는 'SOH'혹은 't'가 됨 | 2014.05.20 | 1125 |
677 | import 혹은 export할때 hive파일의 default 구분자는 --input-fields-terminated-by " |