write to index.xml