Re: [xml] Multiple schemata in memory

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:

The error message would be even more interesting.

Sorry, my fault. I had the wrong schema file in the memory. With the
correct file xmlSchemaParse returns NULL (I suppose it's because it
cannot find the referenced (imported) schema file)...

Subsequent XML Schema documents are located using the 
@schemaLocation of an import/include in Libxml2. You could 

I have to use the Pascal bindings and I am not sure if I can realize
this. Maybe I can try to modify the "schemasImports" pointer in the
xmlSchema struct?

Best regards
Andreas Tscharner                          andreas tscharner metromec ch
And the beast shall come forth surrounded by a roiling cloud of
vengeance. The house of the unbelievers shall be razed and they shall be
scorched to the earth. Their tags shall blink until the end of days.
                                            -- The Book of Mozilla 12:10

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