DTD parser code in Java (written in 2001)