As seen in the ConfigTree of the MenuBundle, `menu_basepath` is a scalar node. Only array nodes are rendered as elements. Everything else are attributes (you can remove the namespace statement from this aswell, because you no longer have element content)