Re: [PHP-XML-DEV] Schema Validation Issues
[email protected] ("Rob Richards") Tue, 7 Sep 2004 19:21:39 -0400
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
Note that schemas in libxml are a work in progress and using relaxNG is the prefered method in libxml. It will validate with the following changes: ----- SCHEMA FILE ----- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:attribute name="filename" type="xsd:anyURI" use="required"/> <xsd:attribute name="year" type="xsd:gYear"/> --- XML file --- <endangered_species xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.cookwood.com/xml/examples/namespac es/global_endspecies.xsd"> Rob ----- Original Message ----- From: Mezzophanti > I Ran the schema across it's own sample xml file and got same error. > > I then ran the schema against the wc3 schema validation service and it > 'seems' to validate? > > Pasted below is the schema file and the xml file being validated. What have > I missed here? Anyone?