Re: factory.newSchema(schemaLocation) freezes

2012-03-20 Thread Danny Sinang
Hi Michael, Thanks. I tried using a resolver but I still get stuck at factory.newSchema(). Here's an excerpt from my jUnit : SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); // load a WXS schema, represented by a Schema instance //Source schema

Re: factory.newSchema(schemaLocation) freezes

2012-03-20 Thread Jacob Kjome
Try using valid URIs http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>   http://www.w3.org/2001/xml.xsd"; uri="file:/C:/Users/dsinang/Desktop/xml.xsd"/>   http://www.w3.org/2001/XMLSchema.xsd"; uri="file:/C:/Users/dsinang/Desktop/XMLSchema.xsd"/> Jake On Tue, 20

Re: factory.newSchema(schemaLocation) freezes

2012-03-20 Thread Danny Sinang
Hi Jake, I tried your suggestion. Still the same problem. Regards, Danny On Tue, Mar 20, 2012 at 5:29 PM, Jacob Kjome wrote: > > Try using valid URIs > > > PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN" >"http://www.oasis-open.org/**committees/entity/release/1.0/** >

Re: factory.newSchema(schemaLocation) freezes

2012-03-20 Thread Michael Glavassevich
If you're using Xerces' XMLCatalogResolver utility, URI entries [1] are expected to map the schema's target namespace not its schema location hint. [1] http://xerces.apache.org/xerces2-j/faq-xcatalogs.html#faq-2 Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mr