Forum Moderators: open
Everything validates as well-formed, but the validator that I'm using to run an XML file against a schema is giving me a hard time, and I'm not sure why.
Here's a snippet of the .xsd (schema) file:
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="meetingdatalist">
<xs:complexType>
<xs:sequence>
<xs:element name="meetingdata">
<xs:complexType>
<xs:sequence> </xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema> I've chopped out the guts from inside of the
<meetingdata> element for your viewing pleasure. As you can see, the
<meetingdatalist> is declared properly. It's a container (complex), so it has a bunch of stuff inside it. Now, here's the top of the XML dump:
<?xml version="1.0" encoding="ISO-8859-1"?>
<meetingdatalist xmlns="http://my.namespace" schemaLocation="http://my.namespace/meetingdatalist.xsd">
<meetingdata id="1549">
<link>
<xml>/Events_and_Meetings/xml_access.php?action=list_meeting_xml&meeting_id=1549</xml>
<html>/Events_and_Meetings/xml_access.php?action=list_meeting&meeting_id=1549</html>
</link>
[red]<snip>[/red] I've redacted the specifics for WebmasterWorld's viewing pleasure, but I will happily send the full URIs to anyone if they wish. The files are not so small.
It sure looks like I've declared everything properly. I have dozens of elements in the dump, and only the outer wrapper, which sets the namespace, fails. Everything validates well-formed.
I'm sure this is a lame newbie problem, but I've found the XML geekspace to be very crowded, very noisy and very difficult to use as a reference. I have had to just jump in with both feet and start making mistakes.
Considering that I knew diddly/squat this time yesterday, I ain't doin' so bad.
Any suggestions would be gratefully appreciated.