Xpath support in JavaScript

I’ve designed and released a couple of Yahoo! Widgets for my work that utilize our API to return tracking data. A friend of mine, Bill, designed a great prototype and I kept adding on from there. One of the nice coding features of Yahoo! “Widgetry” is it’s support for Xpath. Interestingly enough, Xpath is not natively supported in JavaScript. That said, another friend of mine, Dale, found a nice little gem that is included with Adobe’s Spry Framework for Ajax. Included in the standard download is an Xpath include for Javascript (XPath.js). More interesting is the fact that the include file is actually written by Google with a copyright date for 2005. Weird – but a fantastic catch! What a great little script to have handy when working with XML.