0
나는 내가 <p lang="title"> Notice how it has <sup></sup> and <sub></sub> tags being used inside.
이 xpath 표현식에서 내부 HTML 컨텐트를 얻으려면 어떻게해야합니까?
내 XPath 식 .// 페이지를 추출하기 위해 노력하고, 위의 HTML 코드에서 일부 HTML 코드
<li><h3>Number Theory - Even Factors</h3>
<p lang="title">Number N = 2<sup>6</sup> * 5<sup>5</sup> * 7<sup>6</sup> * 10<sup>7</sup>; how many factors of N are even numbers?</p>
<ol class="xyz">
<li>1183</li>
<li>1200</li>
<li>1050</li>
<li>840</li>
</ol>
<ul class="exp">
<li class="grey fleft">
<span class="qlabs_tooltip_bottom qlabs_tooltip_style_33" style="cursor:pointer;">
<span>
<strong>Correct Answer</strong>
Choice (A).</br>1183
</span>
Correct answer
</span>
</li>
<li class="primary fleft">
<a href="factors_6.shtml">Explanatory Answer</a>
</li>
<li class="grey1 fleft">Factors - Even numbers</li>
<li class="orange flrt">Medium</li>
</ul>
</li>
이/텍스트 [LANG = "제목"@]() 하위 및 sup 내용을 검색하지 않습니다. 내가 원하는 출력
다음이 출력을 얻을 어떻게
Number N = 2<sup>6</sup>*5<sup>5</sup> * 7<sup>6</sup> * 10<sup>7</sup>; how many factors of N are even numbers?
질문? –
https://stackoverflow.com/questions/11744465/xpath-difference-between-node-and-text를 참조하십시오. –