Pathology is a thoroughly Mac-native XPath debugger and visualizer written entirely in Cocoa. Pathology includes the innovative ability to debug your XPath queries by proceeding through them step by step. The app includes a full-featured XPath text editor with syntax highlighting, code auto-completion, and several syntax highlighting themes to choose from. The tool comes with an interactive console with clickable error messages that lead you right to the syntax or runtime errors in your XPath or source XML.
Each Pathology window is a ".pathology" document that can be edited, saved and re-opened later. A query results table contains details on the selected nodes or items. Clicking on a row focuses the corresponding node in the source XML text. Query result nodes are also highlighted conspicuously in the source XML text.