Subject: | Bug at ErrorReport by validate |
Hello,
the validate Routine has a Problem with minOccurs="0" maxOccurs="0".
The Error Message is wrong.
The correct Message is
#Schemas validity error : Element '{.....}c': This element is not expected.
It is only a Pointer Error in the library? i+1 ?
ActivePerl 5.14.2 Build 1402
I have only load via PPM
#use XML::Writer;
#use XML::LibXML;
Subject: | xml_lib.pl |
#!perl
use strict;
use warnings;
use Test::More;
use XML::LibXML;
my $xml_filename_or_url = "in.xml";
my $schema_filename_or_url = "schema.xsd";
my $doc = XML::LibXML->new->parse_file($xml_filename_or_url);
my $xmlschema = XML::LibXML::Schema->new( location =>$schema_filename_or_url );
print $xmlschema->validate( $doc );
Subject: | in.xml |
<?xml version="1.0" encoding="UTF-8"?>
<a xmlns="http://myns.xyzabc.de">
<b>testB</b>
<c>testC</c>
<d>testD</d>
</a>
Subject: | schema.xsd |
Message body not shown because it is not plain text.