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
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
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/**
>
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