worked on generating xml metadata. Not done yet