Changed from xpathFind to xmllint with some hackery