• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Included schemas not loaded while validating in java-unix env.

 
Devesh H Rao
Ranch Hand
Posts: 687
Hibernate jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a validator code in java which validates a xml against a schema.
The problem that i am facing is in the 3 schemas, the first schema references the second and the second references the third.

The validating code runs fine on Windows but on AIX env the first schema is loaded but the "included" schema is not loaded and when i run the validation i get the following error

"org.xml.sax.SAXParseException: Schema error: Element ** not found in the Schema."

can anyone help me out in here

Thanks
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you forget to replace the Windows path separators (backward slash) with the UNIX version (forward slash)?
 
Devesh H Rao
Ranch Hand
Posts: 687
Hibernate jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
Did you forget to replace the Windows path separators (backward slash) with the UNIX version (forward slash)?


If this was the case even the first schema wouldnt have been loaded.

i am not able to make out what the problem is coz the first schema is loaded properly, the error is thrown only when a referenced element is to be validated which is defined in the included schema and not the main schema.

The included schemas are in the same directory as the main schema and hence the include URL is relative and dosent contain "\" or "/" for that matter to mess up the file protocol in UNIX v/s windows.

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic