Hello i am trying to parse an XML file using parcer xerces . But I got the IO exception when i am trying to parse the file
Directory0: \\wkdis3\ROOT\home Canonicalpath-Directory4: \\wkdis3\ROOT\home\bwe\ You selected the file named AAA.XML getXmlAlgorithmDocument(): IOException Not logged in sun.net.ftp.FtpLoginException: Not logged in at sun.net.ftp.FtpClient.readReply(Unknown Source) at sun.net.ftp.FtpClient.issueCommand(Unknown Source) at sun.net.ftp.FtpClient.login(Unknown Source) at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source) at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) at javax.xml.parsers.DocumentBuilder.parse(Unknown Source) at ParseTest.<init>(ParseTest.java:91) at ParseTest.main(ParseTest.java:200) I have to use the code below in order to validate the parser,I guess that is the reason of the exception. Has anybody any idea how to solve that? y { factory.setAttribute("http://xml.org/sax/features/validation", new Boolean(true)); factory.setAttribute("http://apache.org/xml/features/validation/schema", new Boolean(true)); // factory.setNamespaceAware(true); factory.setValidating(true); -- Cigdem Savaseri-Brackmann