1. An extensible markup language (XML) path (XPATH) expression debugging method comprising: receiving an XPATH input expression; parsing the XPATH input expression to produce a plurality of sub-expressions; ordering the sub-expressions in a model for the XPATH input expression; and, responsive to a selection of one of the sub-expressions in the model, producing a result set for the sub-expression.