John Lovell wrote:
I don't know if my schema is invalid or if this represents a bug in lxml or libxml2. The error log shows the following error:
../1.5r1/XSD/Infrastructure/Authentication__Authentication.xml:2:ERROR:S CHEMASV:SCHEMAV_CVC_ELT_1: Element 'Authentication': No matching global declaration available for the validation root.
I'm not so firm with libxml2's XML Schema implementation, not sure what that means exactly. Is it the only error you get in the log?
The same code given diffrent files works fine. Does anyone have any ideas why I am getting this message?
You can check if "xmllint" (which is the command line tool that comes with libxml2) produces the same error. It is actually unlikely that this is an lxml problem, so this would tell you if libxml2 really thinks that your file is invalid. In that case, you can ask on the libxml2 mailing list instead. Maybe you can also check with a different tool, that might give you more hints on what is wrong here. Stefan