I obtained these example queries and the example .xml file here.

I'm no xpath expert, but it seems like none of these 3 programs are giving the right results in all test cases - and these test cases are just taken from an introductory xpath article!

Also, the programs frequently don't give the same results - even though the python script is a pretty direct translation of the C program.

For each xpath expression, attempt to fetch the relevant values using 3 different programs:




Hits: 3320
Timestamp: 2024-03-29 04:11:54 PDT

Back to Dan's tech tidbits

You can e-mail the author with questions or comments: