Have xenopath.dom/attributes return a map