Re: [xml] How to validate xml against several xsd files using libxml2?
Darko Miletic wrote: Hi to all, Recently I started working with e-learning content that includes producing, parsing managing SCORM compliant manifest xml files. All such files have declared parts of structure in several scheme files so validation must be made using all that files at the same time. if you mean distinct areas in their own namespaces with different schemas, I recommend you look at NVDL (http://nvdl.org/). It's designed for just this sort of thing. I'm not saying its easy to get working, mind... if you mean that the schema is delivered in several files, then there should be a wrapper schema which includes them. -- Sebastian Rahtz Information Manager, Oxford University Computing Services 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431 ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml
[xml] How to validate xml against several xsd files using libxml2?
Hi to all, Recently I started working with e-learning content that includes producing, parsing managing SCORM compliant manifest xml files. All such files have declared parts of structure in several scheme files so validation must be made using all that files at the same time. I tried to validate using xmllint but it does not support specifying more than one schema file. I also saw that in libxml2 API the function for specifying schema validation context supports only one file at the time and thus It is not possible AFAIK to do that even writing custom code. Any ideas? Am I missing something? You can generate simple SCORM manifest using reload editor from here: http://www.reload.ac.uk/download/ReloadEditor202_ManualInstall.zip Thanks, -- Darko Miletic Chief Software Architect UVCMS e-learning Costa Rica 4752 street Buenos Aires C1414BSL Argentina +1 646 8439869 +54 11 48316086 ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml
Re: [xml] How to validate xml against several xsd files using libxml2?
Sebastian Rahtz wrote: if you mean distinct areas in their own namespaces with different schemas, I recommend you look at NVDL (http://nvdl.org/). It's designed for just this sort of thing. I'm not saying its easy to get working, mind... This looks quite complicated... I'll see if I can understand this if you mean that the schema is delivered in several files, then there should be a wrapper schema which includes them. I see. Thank you for this suggestion I'll check it out. -- Darko Miletic Chief Software Architect UVCMS e-learning Costa Rica 4752 street Buenos Aires C1414BSL Argentina +1 646 8439869 +54 11 48316086 ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml
Re: [xml] How to validate xml against several xsd files using libxml2?
Darko Miletic wrote: if you mean that the schema is delivered in several files, then there should be a wrapper schema which includes them. I see. Thank you for this suggestion I'll check it out. It works with generating third wrapping xsd files. Too bad it is not documented anywhere. Thanks again for valuable help. -- Darko Miletic Chief Software Architect UVCMS e-learning Costa Rica 4752 street Buenos Aires C1414BSL Argentina +1 646 8439869 +54 11 48316086 ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml