[xml] Multiple schemata in memory

Hello World,

I have three schemata: A.xsd, B.xsd and C.xsd. A.xsd is the "master"
schema: it imports B.xsd; B.xsd on the other hand imports C.xsd.
If I load A.xsd from the filesystem with xmlSchemaNewParserCtxt, the
validation against my test file works and is successful.

Now my problem: A.xsd, B.xsd and C.xsd are all in memory in different
places. I am able to "load" A.xsd using xmlSchemaNewMemParserCtxt, but
it does not know about B.xsd and C.xsd I got the error code 1845:

How can I validate my document with these three files in memory?

TIA and best regards
Andreas Tscharner                          andreas tscharner metromec ch
And so at last the beast fell and the unbelievers rejoiced. But all was
not lost, for from the ash rose a great bird. The bird gazed down upon
the unbelievers and cast fire and thunder upon them. For the beast had
been reborn with its strength renewed, and the followers of Mammon
cowered in horror.                          -- The Book of Mozilla, 7:15

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]