0
我想使用XPath來獲取值「美國國家航空和航天局」只能從下面XPath查找在HTML代碼值
<table style="margin: 0 5px 0 2px; font-size: 8pt;" class="joaResultsDetailsTable">
<tr>
<td><strong>Department:</strong></td>
<td>National Aeronautics and Space Administration</td>
</tr>
<tr>
<td style="width: 112px;"><strong>Agency:</strong></td>
<td>George C. Marshall Space Flight Center</td>
</tr>
<tr>
<td><strong>Open Period:</strong></td>
<td>9/10/2012 to 9/14/2012</td>
</tr>
<tr>
<td><strong>Who May Apply:</strong></td>
<td>
Current students from education institutions interested in paid opportunities wi...
</td>
</tr>
<tr>
<td style="vertical-align:top;"><strong>Location(s):</strong></td>
<td>Huntsville, Alabama</td>
</tr>
</table>
的HTML我希望如果你能幫助
您使用的是XHTML嗎?如果不是,您可能需要爲您的文檔編寫架構,並且在最糟糕的情況下,HTML不會將其解析爲XML。 – wberry