How to make a nav bar based on xml?

Hello.
I’d like to make a nav bar that is dynamically created from xml.
So if I wanted to change a link, all I’d have to do is change a line on xml.

Is this possible?

Thanks in advance.