메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


java/jsp jsoup 사용 예제

총관리자 2014.06.06 13:50 조회 수 : 1630

문자열 : <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)");

번호 제목 날짜 조회 수
53 [vue storefrontui]외부 API통합하기 참고 문서 2022.02.09 80
52 ./gradlew :composeDown 및 ./gradlew :composeUp 를 성공했을때의 메세지 2023.02.20 84
51 restaurant-controller,에서 등록 예시 2022.04.30 99
50 주문히스토리 조회 2022.04.30 99
49 호출 url현황 2023.02.21 112
48 주문 생성 데이터 예시 2022.04.30 112
47 vuestorefrontui.io를 이용한 front end project 생성하기 2022.02.06 135
46 windows10 pro에서 microservice pattern책의 예제를 kubernetes에서 기동하는 방법 2022.01.30 147
45 Windows에서 sbt개발환경 구축 방법(링크) 2016.06.02 178
44 lagom-windows용 build.sbt파일 내용 2017.10.12 178
43 lombok설치방법 2020.06.20 183
42 java스레드 덤프 분석하기 file 2016.11.03 185
41 jdk 9이상 사용하려면 repository를 아래와 같이 지정해야한다. 2019.06.02 197
40 eclipse editor 설정방법 2022.02.01 201
39 Lagom에서 제공하는 Maven을 이용한 Hello프로젝트 자동생성 및 실행 2018.01.19 244
38 [jsoup]Jsoup Tutorial 2017.04.11 256
37 DBCP Datasource(org.apache.commons.dbcp.BasicDataSource) 설정 및 속성 설명 2016.09.26 260
36 [메모리 덤프파일 분석] 2017.03.31 262
35 Lagom프레임웍에서 제공하는 HelloWorld 테스트를 수행시 [unknown-version]오류가 발생하면서 빌드가 되지 않는 경우 조치사항 2017.12.22 273
34 lagom의 online-auction-java프로젝트 실행시 "Could not find Cassandra contact points, due to: ServiceLocator is not bound" 경고 발생시 조치사항 2017.10.12 280
위로