XML-The markup in the document following the root element must be well-formed



I just began to learn XML and I can't find the solution to my error. I get this error: "The markup in the document following the root element must be well-formed.


Any help would be great. Thanks



<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://ift.tt/tphNwY">
<xsd:element name="inventory">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="cd" type="cdType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:complexType name="cdType">
<xsd:sequence>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="artist" type="xsd:string"/>
<xsd:element name="contact" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>

<inventory>
<cd>
<title>American Beauty</title>
<artist>Grateful Dead</artist>
<contact>KC Daily</contact>
</cd>

<cd>
<title>Dare to be Stupid</title>
<artist>Al Yankovic</artist>
</cd>

<cd>
<title>Skeletons from the Closet</title>
<artist>Grateful Dead></artist>
<contact>KC Daily</contact>
</cd>
</inventory>

No comments:

Post a Comment