discriminate between unknown tags and "junk" (comments mixed into tag sections); preserve order of all line elements