attributes in xml are usually used for metadata (like the "class" that you have). but since the path is key info of a route it should be an element. see http://www.w3schools.com/dtd/dtd_el_vs_attr.asp