Hi Kumuda, Please don't use html when posting to mailing lists.
As far as I know, you have two solutions : * The simplest way is to use the EntityResolver (you will have to implement one) and use setEntityResolver method of your builder. When the builder have to resolve an entity, your EntityResolver will be asked to provide an InputStream. * Or more complicated, choose a protocol name (myprotocol for instance) then implement a StreamHandlerFactory and a StreamHandler. At the beginning on your application use URL.setURLStreamHandlerFactory(myStreamHandlerFactory), and use the protocol name on your xml files (something like xsi:noNamespaceSchemaLocation="myprotocol:myschema.xsd"). Then the parser will be able to find your schemas. You can only affect once an StreamHandlerFactory. Eric -----Original Message----- From: Kumuda Rajarshi [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 9:14 AM To: [EMAIL PROTECTED] Subject: How to store Schema separately and xml separately and still validate the xml against the schema Hello, I have a directory where I am storing all my Schema's and I have another directory where I am storing my XML file. I have to store like this only. If I do so, and If I validate, the XML, I am getting error which means that the Schema is not found. How to validate those XML's whose schema is in separate Directory Please do answer soon as possible. Thanking you KumudaRajarshi ____________________________________________________ IncrediMail - Email has finally evolved - Click Here --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
