List Info

Thread: Multiple schemata in memory




Multiple schemata in memory
user name
2006-06-22 12:55:46
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
as
it does not know about B.xsd and C.xsd I got the error code
1845:
XML_SCHEMAV_CVC_ELT_1.

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

TIA and best regards
  Andreas
-- 
Andreas Tscharner                         
andreas.tscharnermetromec.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

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )