if(/begin_item/) { while (!/end_item/) { ...deal with data members here... } }