Currently, the ElementParser supports parsing InputStream and Reader objects.
Suggestion is to allow direct parsing of a complete file.
I will attach a proposed implementation, which also fixes some typos in the Javadoc comments for the ElementParser class.
Logged In: YES
user_id=11053
Originator: YES
File Added: 1809379_0.diff
Suggested implementation.
Logged In: YES
user_id=987589
Originator: NO
Done. Will be in XINS 2.2-alpha1.
The implementation is a bit different as it close the opened stream if an exception occurs.