Hi Benson,

Thanks for your input.


Regards,
Sheen

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 12, 2002 4:58 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: XML Validation with external schema


I believe you can use the combination of the
"external-noNamespaceSchemaLocation" feature and EntityResolver, so the
Xerces will call your version of the resolveEntity() method, in this 
method
you just create an InputSource from your schema string.  I had some 
issue in
version 1.4.4 that your resolveEntity() method did not get called, but
version 1.4.3 works fine.

Benson.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 12, 2002 8:09 AM
To: [EMAIL PROTECTED]
Subject: RE: XML Validation with external schema


Thanks Joe,

Can you tell me how did you achieve this with Xerces 2.x? Validating 
xml with a schema that is not in an external file but available as a 
string. 

I wouldn't prefer to distrupt the application by moving to Xerces 2.x 
but, if that is what required to add more value to my application then 
I will reconsider the decision.

Regards,
Sheen

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 12, 2002 3:49 PM
To: [EMAIL PROTECTED]
Subject: RE: XML Validation with external schema


I hope I'm wrong on this, for your sake, but ...

I tried to get an XML document to be validated on an external schema in
1.4 for a long time with no success. Same code under 2.x, and I had no
problems. No problems reaching the external schema, anyway.

-----Original Message-----
From: Sheen Brisals [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 12, 2002 9:51 AM
To: [EMAIL PROTECTED]
Subject: XML Validation with external schema 

Hi,

I'm sorry to post a question on this good old subject.

After going through a number of postings on the same subject, still I 
could not find an answer to validate a given xml instance document with 
an external schema that is available as a string. In my case, during 
runtime my application is given with an instance document and a schema 
as serialized string objects. The application should be able to 
validate the document then and there. I'm using Xerces 1.4 (cannot 
upgrade to 2.x at this stage) for parsing, serialzing and other DOM 
APIs. Any code snippets or ideas would be very helpful.

Thanks,
Sheen


---------------------------------------------------------------------
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]

---------------------------------------------------------------------
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