도움말 센터도움말 센터
이 번역 페이지는 최신 내용을 담고 있지 않습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
값이 없는 HTML 트리 찾기
R2018b 이후
tf = ismissing(tree)
예제
tf = ismissing(tree)는 어떤 tree의 요소가 HTML 트리를 참조하지 않는지를 나타내는 논리형 배열을 반환합니다. 예를 들어 루트 노드의 Parent 속성으로 tree가 지정된 경우 이 함수는 1(true)을 반환합니다.
tf
tree
Parent
true
모두 축소
HTML 트리 객체가 루트 노드를 나타내는지 테스트하려면 Parent 속성이 누락되었는지 테스트하십시오.
webread를 사용하여 URL https://www.mathworks.com/help/textanalytics에서 HTML 코드를 읽어옵니다.
webread
https://www.mathworks.com/help/textanalytics
url = "https://www.mathworks.com/help/textanalytics"; code = webread(url);
htmlTree를 사용하여 HTML 코드를 구문 분석합니다.
htmlTree
tree = htmlTree(code);
tree의 부모가 HTML 트리를 참조하는지 테스트합니다.
tf = ismissing(tree.Parent)
tf = logical 1
tree가 HTML 트리의 루트 노드를 나타내기 때문에 tree.Parent의 값이 missing이고 ismissing 함수가 1(true)을 반환합니다.
tree.Parent
missing
ismissing
HTML 트리로, htmlTree 배열로 지정됩니다.
R2018b에 개발됨
extractFileText | extractHTMLText | readPDFFormData | htmlTree | findElement | getAttribute | tokenizedDocument
extractFileText
extractHTMLText
readPDFFormData
findElement
getAttribute
tokenizedDocument
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office