How would I write a simple XPath evaluator for an XPath query like:
//user[role='moderator']/address/./zipcode
?
I'm trying to write an XPath inspired tool for locating files in a directory.
Edit: I should have clarified but I'm not trying to write a full-fledged XPath implementation. If it supports queries like seen at http://www.w3schools.com/XPath/xpath_syntax.asp, that's sufficient for my purposes. Also, don't worry about the difficulty level. I'm a bit crazy and I'll find a way to pull it off :)