public class DTDResolver implements EntityResolver {\r
public InputSource resolveEntity(String publicID, String systemID) \r
throws SAXException {\r
- if (!systemID.endsWith("surfxml.dtd")) {\r
+ if (!systemID.endsWith("simgrid.dtd")) {\r
System.out.\r
println("\n MSG - Warning - the platform used seams invalid\n");\r
return null;\r
}\r
\r
/* try to get the DTD from the classpath */ \r
- InputStream in = getClass().getResourceAsStream("/surfxml.dtd");\r
+ InputStream in = getClass().getResourceAsStream("/simgrid.dtd");\r
if (null == in)\r
\r
/* try to get the DTD from the surf dir in the jar */ \r
- in = getClass().getResourceAsStream("/surf/surfxml.dtd");\r
+ in = getClass().getResourceAsStream("/surf/simgrid.dtd");\r
if (null == in)\r
\r
/* try to get the DTD from the directory Simgrid */ \r
- in = getClass().getResourceAsStream("/Simgrid/surfxml.dtd");\r
+ in = getClass().getResourceAsStream("/Simgrid/simgrid.dtd");\r
if (null == in)\r
\r
/* try to get the DTD from the directory Simgrid/msg */ \r
- in = getClass().getResourceAsStream("/Simgrid/msg/surfxml.dtd");\r
+ in = getClass().getResourceAsStream("/Simgrid/msg/simgrid.dtd");\r
if (null == in) {\r
System.err.println("\nMSG - XML DTD not found (" +\r
systemID.toString() +\r