RE: When a XML file has a DTD declared which is not ac...
DTD is must. if the file is not found at location specified you will get following error java.io.FileNotFoundException: ....AddrBook.dtd (The system cannot find the file specified) at org.apache.crimson.parser.Parser2.fatal(Unknown Source) at org.apache.crimson.parser.Parser2.externalParameterEntity(Unknown Sou rce) at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at XMLInfo.main(XMLInfo.java:18)