logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Problems setting the external schema Location feature: msg#00092

Subject: Re: Problems setting the external schema Location feature
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!/net/dpml/test/testschema/ConfigurableB.xschema

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-noNamespaceSchemaLocation";,
                            
"/home/peter/metro/svn/development/main/metro/composition/test/file:/home/peter/.dpml/main/dpml/test/jars/dpml-test-testschema.jar!/net/dpml/test/testschema/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: xerces-j-user-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: xerces-j-user-help@xxxxxxxxxxxxxx





<Prev in Thread] Current Thread [Next in Thread>