XPath

May not be the fastest or the most complete implementation but this
should be enough for what I need