Freelance software grandad
software created
extended or repaired
Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations
<doc> <p> <ftr>footer 1</ftr> </p> <p> <ftr>footer 2</ftr> </p> </doc>
XPath | Expected | Arabica behaviour |
---|---|---|
//ftr | Select both ftr elements | Correct |
//ftr[1] | Select both ftr elements | Wrong - selects nothing |
//ftr[2] | Select nothing | Correct - but for the wrong reasons |
XPath Expression | Expected | Arabica behaviour |
(//ftr)[1] | Select first ftr element | Correct |
(//ftr)[2] | Select second ftr element | Correct |
Freelance software grandad
software created
extended or repaired
Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations