I'm attempting to go into Schema view in XML Spy Home 2005 on the 
enclosed XML file when it gives the error "Unable to show schema.  
Schema has to begin with a schema-element!".  Anyone have any ideas what 
I'm missing in my files?  Thanks.
-- 
*Damien McKenna* - Web Developer - [EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
"Why are you wearing that stupid man suit?" - Frank

TLCircle.xml:

<?xml version="1.0" encoding="UTF-8"?>
<TLCircle xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="TLCircle.xsd">
    <Member MemberID="1234" ShowPicture="yes">
        <Name>Joe Blogs</Name>
        <Location>Texas</Location>
        <Biography/>
    </Member>
</TLCircle>

TLCircle.xsd:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--W3C Schema generated by XMLSpy v2005 U (http://www.xmlspy.com)-->
<!--Please add namespace attributes, a targetNamespace attribute and 
import elements according to your requirements-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
elementFormDefault="qualified">
    <xs:element name="TLCircle">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="Member" maxOccurs="unbounded"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="Member">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="Name"/>
                <xs:element ref="Location"/>
                <xs:element ref="Biography" minOccurs="0" 
maxOccurs="unbounded"/>
            </xs:sequence>
            <xs:attribute name="MemberID" type="xs:integer" use="required"/>
            <xs:attribute name="ShowPicture" use="required">
                <xs:simpleType>
                    <xs:restriction base="xs:NMTOKEN">
                        <xs:enumeration value="yes"/>
                        <xs:enumeration value="no"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
    <xs:element name="Name" type="xs:string"/>
    <xs:element name="Location" type="xs:string"/>
    <xs:element name="Biography" type="xs:string"/>
</xs:schema>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the mailserver that powers this list at 
http://www.houseoffusion.com/banners/view.cfm?bannerid=17

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183291
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to