Hi,
I'm trying to parse the content retrieved from
with Dom4J to no avail. The exception in question is: Content is not allowed in prolog
Code:
public static Document readUrl(URL url) throws DocumentException {
SAXReader reader = new SAXReader();
return reader.read(url);
}
Junit:
@Test
public void testReadUrl() throws Exception {
assertNotNull("XML obtained from URL", server.readUrl(new URL(url)));
}