// Register local copies of the DTDs we understand
for (int i = 0; i < registrations.length; i += 2) {
URL url = RSSDigester.class.getResource(registrations[i + 1]);
if (url != null) {
reader.register(registrations[i], url.toString());
}
}
// now lets try parse the output sing the BeanReader
String text = buffer.toString();