- This topic has 1 reply, 2 voices, and was last updated 19 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
everZMemberHi,
I am trying to run a short Java application, which reads in a MAGE-ML format xml file. I got the following error.
java.net.MalformedURLException: no protocol: MAGE-ML.dtd
at java.net.URL.<init>(URL.java:537)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at gnu.xml.aelfred2.SAXDriver.absolutize(SAXDriver.java:608)
at gnu.xml.aelfred2.SAXDriver.resolveEntity(SAXDriver.java:585)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3336)
at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)
at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at edu.unc.LCCC.caBIG.DWD.javaCode.ImportMAGEMLFiles.XMLAnalyzer.main(XMLAnalyzer.java:43)It looks like it can not find MAGE-ML.dtd. I use same codes without package definition and run it in dos. It works fine. Should I import this dtd file into some folder of MyEclipse? If yes, where?
I found a smilar error at the following site (it is also for Eclipse user community). But it was written in another language I donot understand.
http://jsurfer.de/modules.php?name=Forums&file=viewtopic&p=1933BTW, I use the following version of MyEclipse:
Eclipse Platform
Version: 3.0.0
Build id: 200406251208MyEclipse
Version: 3.8.2
Build id: 200409171200-3.8.2JDK: j2sdk1.4.2_05
Thanks.
Everett
Riyad KallaMemberEverett,
This has nothing to do with MyEclipse and my guess is that your parser is being set to validate so it’s trying to load the DTD. You can either fully qualify the DTD location or turn off the validating functionality of your XML parser. -
AuthorPosts