I
I
Igor Statkevich2019-11-19 10:16:02
XPath
Igor Statkevich, 2019-11-19 10:16:02

I can't understand why?

<tr>
    <td valign="top" width="8%">
        <p><a href="/sites/documents/SFH_FHA_INFO_13-85.pdf">13-85</a></p>
    </td>
    <td valign="top" width="13%">
  <p>(12/27/13)</p>
    </td>
    <td>
  <p>HECM Standard and Saver loans must close by 12-31-13 (<a href="/sites/documents/ML13-27.pdf">ML 13-27</a>)</p>
    /td>
</tr>

There are several lines, I'm interested in the first column and a link to the document, since the link can be wrapped in a tag <p>or maybe without it, I use //a/@href
//tr/td[1]//a/@href
, why the link from the third column gets into the selection, I'm looking in td[ one]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Fov, 2019-11-19
@MadInc

In theory, it should work as it should.
Probably got a freaking truncated dialect.
Try other options:
//tr/td[position() = 1]//a/@href
or
//tr/td[@width = '8%']//a/@
href studio...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question