Andrew Welch <andrew.j.we...@gmail.com> wrote on 28/03/2012 02:23:45 AM:

> From: Andrew Welch <andrew.j.we...@gmail.com>
> 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 <?xml
> > 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 the start... if you look at the bytes in a hex editor
> what is the first byte?

If the document doesn't start with a '<', whitespace or a byte order mark 
I'd expect to see a different error message like:

An invalid XML character (Unicode: 0x{0}) was found in the prolog of the 
document.
 
> > As for the XSD, there's one main XSD, but it imports and includes 
other
> > XSD's.
> >
> > Besides inspecting all those XSD files (there are lots of them) for
> > whitespaces, is there a way to get Xerces to indicate which XSD 
itfinds the
> > problem in ?
> 
> One option (if Michael's suggestion of writing some code isn't doable)
>  is to use the validation tab in Kernow, and click the 'check schema'
> button.  That will return any errors when compiling the xsd (although
> I can't remember if I include the extra information... I will add it
> if not).  Either way, it will help narrow down the issue.
> 
> http::/kernowforsaxon.sf.net/
> 
> 
> -- 
> Andrew Welch
> http://andrewjwelch.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org

Thanks.

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Reply via email to