Jez Higgins

Freelance software generalist
software created
extended or repaired


Older posts are available in the archive or through tags.

Feed

Follow me on Twitter
My code on GitHub

Contact
About

Wednesday 14 June 2006 Arabica: XPath Evaluation bug

For the document
  <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

Tagged code, arabica, xml, and c++


Jez Higgins

Freelance software generalist
software created
extended or repaired

Older posts are available in the archive or through tags.

Feed

Follow me on Twitter
My code on GitHub

Contact
About