Re: Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema




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.

.



Relevant Pages

  • Re: Convert an untyped Data Table to a typed Data Table
    ... I am assuming I need to convert the table to XML ... It will create the dataset, the datatables, ... It feeds on XSD files and generates datasets ... You may edit the XSD to your liking (for example, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Treat a DataSet as a class structure
    ... I'm now able to create and populate my XML and XSD files correctly. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XML-XSD Processing/Creation.
    ... So i'm working with the WITSML standard, ... massive standard defined in XML for the transfer of oilfield data. ... There are a ton of XSD files for defining and checking all data in the ...
    (comp.lang.python)
  • Re: Validation with XSD using XML::LibXML::Schema, and XML::Validator::Schema
    ... attempt to validate, yet the XML and XSD files appear to be perfectly ... case then rather than actually posting them it may be better to put ...
    (comp.lang.perl.misc)
  • Re: XSD Class Generation
    ... There was an error generating the XML document. ... Sevket Seyalioglu ... "Yaron Karni" wrote in message ... The problem I am experiencing is, my xsd files are including other xsd files ...
    (microsoft.public.dotnet.languages.csharp)