public ParseEvents()
{
String classpathLocation_plm = "com/esper/Resources/dataPkt.xsd";
String classpathLocation_status = "com/esper/Resources/helloPkt.xsd";
URL schemaURL_plm = this.getClass().getClassLoader().getResource(classpathLocation_plm);
URL schemaURL_status = this.getClass().getClassLoader().getResource(classpathLocation_status);
//System.out.println(schemaURL.getPath());
ConfigurationEventTypeXMLDOM plmcfg = new ConfigurationEventTypeXMLDOM();
ConfigurationEventTypeXMLDOM plmstatus = new ConfigurationEventTypeXMLDOM();
epService = EPServiceProviderManager.getDefaultProvider();
epService1 = EPServiceProviderManager.getDefaultProvider();
plmcfg.setRootElementName("PACKET");
plmcfg.setSchemaResource(schemaURL_plm.toString());
plmstatus.setRootElementName("PACKET");
plmstatus.setSchemaResource(schemaURL_status.toString());
plmAdm = epService.getEPAdministrator();
plmAdm1 = epService1.getEPAdministrator();
plmAdm.getConfiguration().addEventType("PlmEvent", plmcfg);
plmAdm1.getConfiguration().addEventType("PlmStatus", plmstatus);
} I have two schema in classpath of the java project. Now the xml files (as events) coming to the esper engine does not understand which schema to understand. How can this problem be resolved? Experts please suggest !