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: 3516
Timestamp: 2025-01-09 18:19:07 PST

Back to Dan's tech tidbits

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