I think I know the problem.
It seems that Xerces has problem with schema files not located in the same
directory as the xml file.
Another problem is an import statement inside the schema (it looks for the
imported schema relativ to the xml file instead of the parent schema).

As I didn't get an answer for that, I switched to Oracle's XDK beta. Well,
that library has a bug as the EntityResolver does not work, but with that
workaround, it works now for me.

For me, the source is too complex (I fixed the NullPointer-Exception but
then it says my xml file is wrong) for finding the errors by myself.

JOERN_HEID

-----Urspr�ngliche Nachricht-----
Von: NeSmith, David [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. Juli 2001 00:01
An: '[EMAIL PROTECTED]'
Betreff: RE: Schema validation problems


PS: I am using jdk1.3 and Xerces 1.4.1

-----Original Message-----
From: NeSmith, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 5:56 PM
To: '[EMAIL PROTECTED]'
Subject: Schema validation problems


I am getting a null pointer exception every time I try to validate a file
against it's schema. It says what validation errors are in the file or it
says nothing if there is no validation error.  But directly after that there
is a null pointer.  These are the features I turned on.

parser.setFeature("http://xml.org/sax/features/validation";, true);
parser.setFeature("http://apache.org/xml/features/validation/schema";, true);
parser.setFeature("http://apache.org/xml/features/validation/schema-full-che
cking", true);
parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion";,
true);

java.lang.NullPointerException  at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)

any help?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to