[xml] Regarding libxml schema validation

2009-11-12 Thread Sudhindra Kulkarni
Hi,

I have a problem validating a xml generated from a schema which contains an
element having . When I try to include a
element from another schema I get an error

"No matching global element declaration available but demanded by the strict
wildcard"

I have included all the schemas required for the xml file but still get this
error while validating the xml. Any help in this regard would be very
helpful, is this is a limitation of libxml? The same xml I am able to
validate using xmlspy as well as microsoft visual studio.

Regards,
Sudhindra
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


Re: [xml] Regarding LibXML Schema validation

2009-11-11 Thread Darko Miletic


Sudhindra Kulkarni wrote:


Hi,

I have a problem validating a xml generated from a schema which 
contains an element having . When I try 
to include a element from another schema I get an error


"No matching global element declaration available but demanded by the 
strict wildcard"


This is a limitation of libxml. You must have all declarations from all 
schemas in one file. So if your xml file uses 6 schemas in order to 
validate them in libxml you must create new schema that includes all 6 
separate schemas and than use that xsd for validation. Something like this:



http://dummy.libxml2.validator";
   targetNamespace ="http://dummy.libxml2.validator";
   xmlns:xs="http://www.w3.org/2001/XMLSchema";
   xmlns:xsi   ="http://www.w3.org/2001/XMLSchema-instance";
   xmlns: =""
   xmlns: =""
   xmlns: =""

   version="1.0"
   elementFormDefault  ="qualified"
   attributeFormDefault="unqualified"   
   >
  
   
   
   





___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml


[xml] Regarding LibXML Schema validation

2009-11-11 Thread Sudhindra Kulkarni
Hi,

I have a problem validating a xml generated from a schema which contains an
element having . When I try to include a
element from another schema I get an error

"No matching global element declaration available but demanded by the strict
wildcard"

I have included all the schemas required for the xml file but still get this
error while validating the xml. Any help in this regard would be very
helpful, is this is a limitation of libxml? The same xml I am able to
validate using xmlspy as well as microsoft visual studio.

Regards,
Sudhindra
___
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml