Skip Menu |

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 75838
Status: open
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: mc-power [...] justmail.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.70
Fixed in: (no value)



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
Download schema.xsd
application/octet-stream 1k

Message body not shown because it is not plain text.

Hi mc-power, On Sat Mar 17 06:27:49 2012, mc-power@justmail.de wrote: Show quoted text
> 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. Show quoted text
> > It is only a Pointer Error in the library? i+1 ? >
No idea, but are you sure this problem doesn't exist with the C-based libxml2 (which XML::LibXML wraps) too? Regards, -- Shlomi Fish