Skip Menu |

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

Report information
The Basics
Id: 8245
Status: open
Priority: 0/
Queue: XML-Validator-Schema

People
Owner: Nobody in particular
Requestors: jean.flouret [...] infineon.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: element name of error message is not correct
Hi, following XML : <A> <B/> </A> with the following schema : <xs:schema xmlns:xs="mydoc"> <xs:element name="A"> <xs:complexType> <xs:sequence> <xs:element name="B" /> <xs:element name="C" /> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> generates following error : File fail validation Element contents do not match content model '(B,C)'. Instead of File fail validation : Element "A" does not match content model '(B,C)' . "contents" name should be hard-coded somewhere. Without the real element name, such a message is almost useless on big xml files. regards, Jean Flouret
Thanks for the suggestion. This will be in 1.08.
From: jean.flouret [...] infineon.com
[SAMTREGAR - Thu Nov 4 13:22:35 2004]: Show quoted text
> Thanks for the suggestion. This will be in 1.08.
You are welcomed. And thank you for such a quick fix. By the way, I have an other comment concerning the message issued in case or error : You may have several "A" section with different attribute in a real xml. like for instance : <A name="first"> ... <A name="second"> So a message claiming that section A does not match the model will give the user an uncomplete information to correct it. (he won't know with A section contains the error) I think it would be much more user friendly if the message will report either : the tag name "A" (this is your fix) + its attribute content (here name="first") for instance. either : the line in the XML file where the section A that contains the error is located. Just tell me if you want me you to create an other bug for that suggestion. Regards, Jean
Date: Fri, 5 Nov 2004 09:47:56 -0500 (EST)
From: Sam Tregar <sam [...] tregar.com>
To: Guest via RT <bug-XML-Validator-Schema [...] rt.cpan.org>
Subject: Re: [cpan #8245] element name of error message is not correct
RT-Send-Cc:
On Fri, 5 Nov 2004, Guest via RT wrote: Show quoted text
> either : > the line in the XML file where the section A that contains the error is > located.
As a matter of fact I just implemented this! 1.08 is out today and will show line and column numbers if you install XML::Filter::ExceptionLocator and use XML::SAX::ExpatXS as your SAX parser. -sam
[sam@tregar.com - Fri Nov 5 10:17:00 2004]: Show quoted text
> On Fri, 5 Nov 2004, Guest via RT wrote: >
> > either : > > the line in the XML file where the section A that contains the error
> is
> > located.
> > As a matter of fact I just implemented this! 1.08 is out today and > will show line and column numbers if you install > XML::Filter::ExceptionLocator and use XML::SAX::ExpatXS as your SAX > parser. > > -sam >
Wonderfull, I have just tried it and it works ! thanks again. regards, Jean