XML의 새로운 기능. XPath를 찾고 파이썬 ElementTree의 형식의 XML 파일을 검색 할 수ElementTree를 사용한 XPath 검색
<root>
<child>One</child>
<child>Two</child>
<child>Three</child>
</root>
"2"자식에 대한 검색을하고 돌아갑니다
참/거짓이
from elementtree import ElementTree
root = ElementTree.parse(open(PathFile)).getroot()
처럼 시작하게 된 경우 어떻게 이룰 수 있니?
는 "제한된 XPath는 지원"~ = "전혀 정말 XPath는 것이 아니라 않는 매우 단순화 된 쿼리 언어는 영감의 비트" –