Re: [libxml++] problems with xmlpp



Daniel Holbach wrote:
Hi Darko,

Am Montag, den 30.05.2005, 14:23 -0300 schrieb Darko Miletic:


I used it, before I used RelaxNG in favour of XML Schemas. I used the
underlying libxml2 code - have a look over here:
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/*checkout*/protosquared/protosquared/src/ConfigFile.cc?rev=1.3

And the lines I changed for Relax NG:
http://cvs.berlios.de/cgi-bin/viewcvs.cgi/protosquared/protosquared/src/ConfigFile.cc.diff?r1=1.3&r2=1.4

Thanks Daniel, but my problem is more complex. I have xml file that needs to be validated with 5 schema files.
here is the root element of the file
<manifest xmlns="http://www.imsglobal.org/xsd/imscp_v1p1"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:adlcp="http://www.adlnet.org/xsd/adlcp_v1p3"; xmlns:imsss="http://www.imsglobal.org/xsd/imsss"; xmlns:adlseq="http://www.adlnet.org/xsd/adlseq_v1p3"; xmlns:adlnav="http://www.adlnet.org/xsd/adlnav_v1p3"; identifier="MANIFEST-6CF68835-9183-7DD5-93E9-46A5952A16A6" xsi:schemaLocation="http://www.imsglobal.org/xsd/imscp_v1p1 imscp_v1p1.xsd http://www.adlnet.org/xsd/adlcp_v1p3 adlcp_v1p3.xsd http://www.imsglobal.org/xsd/imsss imsss_v1p0.xsd http://www.adlnet.org/xsd/adlseq_v1p3 adlseq_v1p3.xsd http://www.adlnet.org/xsd/adlnav_v1p3 adlnav_v1p3.xsd" version="1.3">

If I use default validation of xsi:schemaLocation I get internal error : like this

Unimplemented block at ..\xmlschemastypes.c:2156
file:///C%3A/reload/test_scorm/imsmanifest.xml:21: element controlMode: Schemas validity error : Element 'imsss:controlMode', [strict WC]: No matching global de
claration available.

I noticed that if file passes validation xpath can be used. In other case no.

Of course file is valid, it appears to be limitation of libxml2.

The code I used for automatic validation is this:

http://mail.gnome.org/archives/xml/2005-January/msg00190.html

I use libxml++ 1.0.04 and libxml2 2.6.19

Darko






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