when i am trying to parse an xml, i am getting following exception :-
java.net.UnknownHostException: hibernate.sourceforge.net
at java.net.AbstractPlainS
I am also trying read from a xml file with dtd tag
and code
File fXmlFile = new File(grammarXML);
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document doc = dBuilder.parse(fXmlFile);
I was getting the same error.
java.net.UnknownHostException:
The server where the code is deployed does not have access to w3.org. When i open w3.org in a browser, it is opening connection timed out page. I gave access to w3.org and it solved the issue.