Hi Milan,

At 18.00 30/12/2004 +0100, Milan Tomic wrote:
[...]
parser->setExternalSchemaLocation("C:\\xmldsig-core-schema.xsd");

The method setExternalSchemaLocation expects a sequence of pairs of strings, where the first one is the namespace URI and the second is the location of the schema file. In your case, you should write


parser->setExternalSchemaLocation("http://www.w3.org/2000/09/xmldsig# C:\\xmldsig-core-schema.xsd");

[...]
Btw, is there a way to give schema as a input stream, and not to have to save it to the file? And if it is in the file, will Xerces be multithread safe?

There are no multithreading problems in reading the schemas from file; but, if you want to use an input stream, you should use loadGrammar() before invoking parse()


Hope this helps,
Alberto




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



Reply via email to