Title: validating with schema
James,
 
Check if you have you dtd included within the xml file as shown below:
 
<!DOCTYPE JobPositionSeeker SYSTEM "JobPositionSeeker-v1.0.dtd">
 
Then check your dtd is in the right path.
 
If this doesn't work u can have a look at the two classes which only validate the xml document against the dtd. This is the one I use and it works fine.
 
Hope this helps
 
 
regards
 
Seb

***********************************************************************
S�bastien Mar�chal
Analyst Programmer
Job Partners Ltd.
Mobile: 0044 (0) 775 994 1124
[EMAIL PROTECTED]
***********************************************************************

-----Original Message-----
From: James Liu [mailto:[EMAIL PROTECTED]
Sent: 17 May 2001 15:01
To: [EMAIL PROTECTED]
Subject: validating with schema

Hi,

I'm trying to validate the example xml file personal-schema.xml, but it seems the SAXparser doesn't know the schema,
when I set the validation to true, it always reports the elements in the xml are not defined. Do I have to set something

special for the schema? anybody knows why?

BTW, the parser works with the DTD.

thanks in advance.

James

Attachment: JPParser.java
Description: Binary data

Attachment: JPParserTest.java
Description: Binary data

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

Reply via email to