I read what reported in How do I change html structure of menu (primary links for example) to my own?How do I change html structure of menu (primary links for example) to my own? but the accepted answer for that question is for Drupal 6.
How do I create a function that adds a CSS class or ID to a single "li" and "sub li"?