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
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
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.
>
>
>
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
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
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
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 >
> 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
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
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
> 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
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
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
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/**
>
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 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
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
17 matches
Mail list logo