Validating with in-memory Xml Schema using Xerces

Jasmin Wason

Usenet Archive
Joined
Mar 24, 2000
Messages
19
Reaction score
0
Hi,

Does anyone know if it is possible to validate some XML with an in-memory schema using Xerces-J?

I have a schema that exists as a String in my Java code. I would like to validate some XML with this schema but the only way I can see to do this at the moment is to write out the string to a temporary file and then refer to it in:

parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation", myFilename);

Is there another way? I would appreciate any help.

Thanks,

Jasmin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top