Complete code for writing initial shows.xml file