Extract content and title from wikipedia database provided in xml into two files respectively