Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Andrew Welch
On 29 March 2012 01:31, Danny Sinang wrote: > Is there a way to make newSchema () display what xsd's it has / is resolving > or loading ? It depends which api you are using, but you can supply your own resolver to intercept the calls... for example using JAXP in Java 1.5 there is: http://docs.or

Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Danny Sinang
oronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Andrew Welch wrote on 28/03/2012 04:38:29 PM: > From: Andrew Welch > To: j-users@xerces.apache.org, > Date: 28/03/2012 04:40 PM > Subject: Re: factory.newSchema(schemaLocation) freezes > > I'm afraid I do

Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Michael Glavassevich
To: j-users@xerces.apache.org, > Date: 28/03/2012 04:40 PM > Subject: Re: factory.newSchema(schemaLocation) freezes > > I'm afraid I don't know... if you don't have any luck here, maybe try > on the more general 'xmlschema-dev' mailing list. > > >

Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Andrew Welch
I'm afraid I don't know... if you don't have any luck here, maybe try on the more general 'xmlschema-dev' mailing list. On 28 March 2012 15:38, Danny Sinang wrote: > Hi Andrew, > > Thanks, I was able to find the XML that had a blank line before the XML > prolog. > > Also, I used Kernow to valida

Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Danny Sinang
Hi Andrew, Thanks, I was able to find the XML that had a blank line before the XML prolog. Also, I used Kernow to validate my document using the same schema in question. Odd thing was, it took like 2 minutes for the schema to compile, and Kernow issued this error : sch-props-correct.2: A schema

Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Danny Sinang
Hi Michael, Thanks ! This allowed me to see the xml file with the blank space before the XML prolog. Regards, Danny On Tue, Mar 27, 2012 at 10:04 PM, Michael Glavassevich wrote: > Hi Danny, > > The SAXParseException [1] contains location information (see > getSystemId()). This is not included i

Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Michael Glavassevich
Andrew Welch wrote on 28/03/2012 02:23:45 AM: > From: Andrew Welch > To: j-users@xerces.apache.org, > Date: 28/03/2012 02:24 AM > Subject: Re: factory.newSchema(schemaLocation) freezes > > > There's only one XML document being validated and I made sure to add a >

Re: factory.newSchema(schemaLocation) freezes

2012-03-27 Thread Andrew Welch
> There's only one XML document being validated and I made sure to add a  version="1.0" encoding="UTF-8"?> at the beginning of the file, making sure > there's no whitespace before it. Still running into the same error. I'm guessing now but if it looks ok, perhaps there's a non-visible character at

Re: factory.newSchema(schemaLocation) freezes

2012-03-27 Thread Michael Glavassevich
Hi Danny, The SAXParseException [1] contains location information (see getSystemId()). This is not included in the error message. You need to extract it programmatically. Thanks. [1] http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/SAXParseException.html Michael Glavassevich XML T

Re: factory.newSchema(schemaLocation) freezes

2012-03-27 Thread Danny Sinang
Hi Andrew, Which XML document ? The one I'm trying to validate ? Or the XSD schemas I'm using to validate it ? There's only one XML document being validated and I made sure to add a at the beginning of the file, making sure there's no whitespace before it. Still running into the same error. As

Re: factory.newSchema(schemaLocation) freezes

2012-03-27 Thread Andrew Welch
> I modified my catalog to use systemId, but I'm now getting the error below. > Any idea what it means ? > > org.xml.sax.SAXParseException: The processing instruction target matching > "[xX][mM][lL]" is not allowed. That means you've got whitespace in front of the xml prolog... -- Andrew Welch h

Re: factory.newSchema(schemaLocation) freezes

2012-03-27 Thread Danny Sinang
Hi Michael, I modified my catalog to use systemId, but I'm now getting the error below. Any idea what it means ? org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown

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

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 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 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-19 Thread Michael Glavassevich
Hi Danny, You have at least one import in your graph of schema documents which points to a resource on the net. >From xhtml11.xsd: http://www.w3.org/XML/1998/namespace"; schemaLocation="http://www.w3.org/2001/xml.xsd";> This import brings in the XML namespace attributes