Re: Can't validate XML Strings with Xerces

2007-02-24 Thread pau carre
Hi, thanks (Dick Deneer too) for the answer, I finally solved the problem by adding the complete (not relative) XSD file URI in the XML file. 2007/2/22, Dick Deneer <[EMAIL PROTECTED]>: Pau, When you are using the InputSoure, you have to set the SystemId on the inputSource which will be used he

Re: Can't validate XML Strings with Xerces

2007-02-22 Thread Dick Deneer
Pau, When you are using the InputSoure, you have to set the SystemId on the inputSource which will be used hen resolving relative URI's. Since you are using a relative schemaLocation, hotelres.xsd. If you do not set the systemId, xerces will use the java workdir to resolve locations. I g

Re: Can't validate XML Strings with Xerces

2007-02-22 Thread Michael Glavassevich
Hi Pau, The schema location in your instance document is a relative URI so this is likely failing because you're not setting the system ID on the InputSource. Without providing a base URI the schema loader will fallback to using the current working directory (the value of the system property u

Can't validate XML Strings with Xerces

2007-02-22 Thread pau carre
Hi, I am developing a WebServices server and I want to use Xerces to validate XML instances that clients send me with SOAP messages. First, I tried a simple example to validate an XML instance contained in a file and then validate it with an XSD Schema (i.e. using URIs), and It worked perfectly.