i have a textfile to read from and i need to retrieve the ID which is (AAW192.21.313) and the text which is encoded between the <TEXT> and </TEXT> tags. How do i go about doing it using scanner class.


Textfile format
<DOC>
<ID> AAW192.21.313 </ID>
<TXTTYPE> Hweet </TXTTYPE>
<TEXT>
Skeeter Bronson (Adam Sandler) is a hotel handyman who was promised by his father to be the manager of the family hotel. Barry Nottingham agreed to keep that promise when the Bronson family sold their hotel to him - then built a new hotel instead.
</TEXT>