I got dtd in file and I cant remove it. When i try to parse it in Java I get "Caused by: java.net.SocketException: Network is unreachable: connect", because its remote dtd. ...
I have some existing code which parses the top-level element namespace to determine what kind of XML file we're looking at.
XMLEventReader reader = createXMLEventReader(...); try { while (reader.hasNext()) { ...