This code supports and justifies the results of the paper with title "Distributed Processing of XPath Queries Using MapReduce" written by Matthew Damigos, Manolis Gergatsoulis and Stathis Plitsos. This paper has been presented at the 17th East-European Conference on Advances in Databases and Information Systems.