Creating a dynamic website template


I’m about to create a Flash XML web site template.

The site functionality should allow the site editor (the person)
-to add and remove new sub pages
-to edit pages contents
-to add and remove auto-scalable site multilevel menu items

What is the best way to do this?
Where I can find guidance (tutorials or something like that) on building a full-scale, dynamic xml site?

Thank You.