可能重複: How to extract a node attribute from XML using PHP’s DOM Parser 我有HTML這樣的: <tr class="calendar_row" data-eventid="48256">
...
</tr>
我只是想選擇的價值或data-eventid跨越該網頁,但我不知道如何在XPath中做到這一點。可能
可能重複: How do I select multiple sets of attributes within an XML document using XPath? 我的HTML代碼: <table width="100%" cellpadding="6" cellspacing="0">
我想不僅是指定選擇此表寬度,但也與cellpadding和cellspacing .. 我使用這個