How do you design a publishing system using xml?