XPath4AS and XPath4AS2 are implementations of XPath for ActionScript
If you code in ActionScript 2, this is the one you want.
I somehow let a simple bug in evaluating single digit equality expressions persist for months. Well, now it's fixed.
Still stuck supporting Flash 5? This is the original unsupported version.