On Thursday 30 December 2004 03:02, Bob Foster wrote: > What you have specified as an argument is pretty clearly not a URI. It > doesn't begin with a scheme. It's hard to tell from reading it what the > correct URL should be, but the form must be: > > jar:file:/path-to-jar-file!/path-within-jar-file > > Just guessing, yours would be: > > jar:file:/home/peter/.dpml/main/dpml/test/jars/dpml-test-testschema.jar!/ne >t/dpml/test/testschema/ConfigurableB.xschema > Thank for the fast reply!
Thinking about it, would it be possible to set the schema like the main file via an InputSource and InputStream instead of an URI? That would be perfect for my needs, since I get the schema via the Classloader.getResource. /peter > What did you think the > > /home/peter/metro/svn/development/main/metro/composition/test/ > > at the beginning would accomplish? > > Bob Foster > > Peter Neubauer wrote: > > Hi, > > trying to set the feature on a 2.6.2 SAXParser (validation enabled etc.): > > m_parser.setErrorHandler(handler); > > m_parser > > .setProperty( > > > > "http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocati > >on", > > "/home/peter/metro/svn/development/main/metro/composition/test/file:/home > >/peter/.dpml/main/dpml/test/jars/dpml-test-testschema.jar!/net/dpml/test/t > >estschema/ConfigurableB.xschema" ); m_parser.parse( new InputSource( new > > ByteArrayInputStream( xml .getBytes() ) ) ); > > with a path to the schema that sits inside a .jar file > > it seems that the schema is not found, since I get an error saying that > > the root element cannot be found: > > org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of > > element 'configuration'. > > > > What kind of schema location is supported by the feature? > > > > Thanks for help > > > > /peter > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
