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
Is there a way to make newSchema () display what xsd's it has / is resolving or loading ? On Mar 28, 2012, at 6:14 PM, Michael Glavassevich wrote: One thing to check is whether you have imports/includes to the same document but pointing to different schema locations. Xerces can only determine t

Re: factory.newSchema(schemaLocation) freezes

2012-03-28 Thread Michael Glavassevich
One thing to check is whether you have imports/includes to the same document but pointing to different schema locations. Xerces can only determine that they're the same if they have identical non-null schema location URIs (after resolveEntity() returns). Otherwise Xerces will process them as un

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 > version="1.0" encoding="UTF-