Subject: | XML::LibXML::Schema reports an error where W3C doesn't |
Hi,
I want to validate a XML file against a schema (see attached
testschema.xsd). Therefor I use XML::LibXML::Schema (see attached
read_testschema.pl), but I always get this error:
When I check it with a W3C tool it says, that the schema is ok:
Element '{http://www.w3.org/2001/XMLSchema}maxInclusive':
'999999999999999999999999999' is not a valid value of the atomic type
'xs:positiveInteger'.
Element '{http://www.w3.org/2001/XMLSchema}maxInclusive': The value
'999999999999999999999999999' of the facet does not validate against the
base type '{http://
www.w3.org/2001/XMLSchema}positiveInteger'.
Schema validating with XSV 3.1-1 of 2007/12/11 16:20:05
* Target: file:/usr/local/XSV/xsvlog/tmp-rMa_Tuploaded
(Real name: testschema.xsd)
* docElt: {http://www.w3.org/2001/XMLSchema}schema
* Validation was strict, starting with type [Anonymous]
* The schema(s) used for schema-validation had
no errors
* No schema-validity problems were found in the target
Subject: | testschema.xsd |
Message body not shown because it is not plain text.
Subject: | read_testschema.pl |
#!/usr/bin/perl
use XML::LibXML;
my $schema = XML::LibXML::Schema->new( location => 'testschema.xsd' );