Re: Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
- From: "Brian McCauley" <nobull67@xxxxxxxxx>
- Date: 28 Nov 2006 14:12:20 -0800
huntingseasonson@xxxxxxxxx wrote:
Brian McCauley wrote:
On Nov 28, 2:12 am, huntingseason...@xxxxxxxxx wrote:
Both XML::LibXML::Schema and XML::Validator::Schema error when I
attempt to validate, yet the XML and XSD files appear to be perfectly
fine.
Both fXML and XSD files are quite long, but I will post if necessary.
I can't really see how we can comment if you don't make them available
to us.
Ok, the xml: http://huntingseasonson.com/TV.xml
and the xsd: http://huntingseasonson.com/TV.xsd
I suspect XML::LibXML::Schema may be getting confused by the explicit
empty namepace declaration.
<xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="package">
XML::Validator::Schema only supports a subset of XSD. I can't
immediately see what in your TV.xsd goes beyond what it supports. It
looks like it's mistaking getting confused here...
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" use="required">
<xs:simpleType>
Looking in XML::Validator::Schema::Parser it seems not to consider the
possiblity that <xs:attribute> has content so it sees <xs:simpleType>
as being within the <xs:complexType>. (The <xs:simpleContent> and
<xs:extension> are handled as specialization of the <xs:complexType>).
I guess XML::Validator::Schema::Parser only supports named types for
attributes.
.
- Follow-Ups:
- References:
- Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
- From: huntingseasonson
- Re: Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
- From: Brian McCauley
- Re: Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
- From: huntingseasonson
- Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
- Prev by Date: Re: Perl/Mail Suggestion....
- Next by Date: Re: Date function
- Previous by thread: Re: Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
- Next by thread: Re: Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
- Index(es):
Relevant Pages
|