Well, Ragunath, I may be able to help with your problem, I hope you can help with mine! You are referencing the XSD from your XML file, which you are opening from an InputStream. From an application, it appears to me that the reference to your files is relative from the directory where the process started. It appears to be that coincidence that is allowing the parser to look in the correct place for any other required files. That's where you put them, isn't it! Your servlet engine is probably running from it's bin directory, however.
 
As I recall, the InputSource was created to maintain the link between file contents and location. In my experience, however, it does not - by itself - keep the URIs for the various input sources straight by any set of rules that I could discern. I don't exactly get how it works from the javadoc. I'd love to hear how exactly how InputSource works. Does this help?
 
RKW
----- Original Message -----
Sent: Tuesday, March 06, 2001 4:31 PM
Subject: RE: XML Schema Validation

hi Keith,
 
I'm trying to validate XML schema with a xml document. I'm just trying to parse the xml schema. When i parse the same in a standalone application, it is working fine. That is it throws me error when the xml document is not according to schema.. But if i use the same code in a servlet it is not working properly. I'm attaching my test files(one is standalone and other is servlet) alongwith xml and xsl files. U go thru it, and if u find any errors plz let me know...
 
Thanks,
Ragu
 
 
 


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

Reply via email to