Quote
XML validation started.
Checking file:/F:/school/Fall2010/XML/XMLWork/hw1/homeWork1.xml...
Referenced entity at "file:/F:/school/Fall2010/XML/XMLWork/hw1/homeWork1.xsd".
s4s-elt-invalid-content.1: The content of '#AnonType_XMLParty' is invalid. Element 'element' is invalid, misplaced, or occurs too often. [5]
XML validation finished.
Checking file:/F:/school/Fall2010/XML/XMLWork/hw1/homeWork1.xml...
Referenced entity at "file:/F:/school/Fall2010/XML/XMLWork/hw1/homeWork1.xsd".
s4s-elt-invalid-content.1: The content of '#AnonType_XMLParty' is invalid. Element 'element' is invalid, misplaced, or occurs too often. [5]
XML validation finished.
<xsd:element name="Party" minOccurs="0" maxOccurs="2">Does it mean I'm missing a closing tag somewhere in the XSD? I've scanned the file for quite some time, and I'm not seeing anything missing. Any help would be greatly appreciated.
Below is the XML and then the XSD..
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
Document : homeWork1.xml
Created on : August 31, 2010, 8:38 PM
Author : Cody
Description:
XML homeWork1 XML/DTD/XDS.
-->
<!--<!DOCTYPE XMLParty SYSTEM "homeWork1.dtd">-->
<XMLParty xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="homeWork1.xsd">
<Party>
<PartyID></PartyID>
<Name>
<Name1></Name1>
<Name2></Name2>
<Name3></Name3>
</Name>
<Street>
<Street1></Street1>
<Street2></Street2>
<Street3></Street3>
<Street4></Street4>
</Street>
<PostalInfo>
<City></City>
<CountrySubEntity></CountrySubEntity>
<PostalCode></PostalCode>
<Country></Country>
</PostalInfo>
<Contact>
<!-- <Name1></Name1> -->
<StructuredName>
<Title></Title>
<FirstNames>
<Name1></Name1>
<Name2></Name2>
<Name3></Name3>
</FirstNames>
<Surname></Surname>
</StructuredName>
<TelNum></TelNum>
<Email></Email>
<Fax></Fax>
<MailStop></MailStop>
<JobTitle></JobTitle>
<Description></Description>
</Contact>
<Ref></Ref>
</Party>
</XMLParty>
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="XMLParty">
<xsd:complexType>
<xsd:element name="Party" minOccurs="0" maxOccurs="2">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="PartyID" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Name" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Name1" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Name2" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Name3" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Street" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Street1" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Street2" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Street3" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="street4" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="PostalInfo" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="City" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="CountrySubEntity" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="PostalCode" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Country" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Contact" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:choice>
<xsd:element name="Name1" minOccurs="0" maxOccurs="1"/>
<xsd:element name="StructuredName" minOccurs="0" maxOccurs="1">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Title" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="FirstName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Name1" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Name2" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Name3" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="SurName" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:element name="TelNum" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Email" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Fax" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Mailstop" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="JobTitle" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Ref" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:complexType>
</xsd:element>
</xsd:schema>


Sign In
Create Account



Back to top









