<?xml version=\"1.0\" encoding=\"utf-8\"?> xmlns= \"http://weblab.kennesaw.edu/t
ID: 3818037 • Letter: #
Question
<?xml version="1.0" encoding="utf-8"?>
xmlns= "http://weblab.kennesaw.edu/toolSchema">
targetNamespace = "http://weblab.kennesaw.edu/toolSchema" elementFormDefault = "qualified">
<!-- root element-->
<xml:element name = "toolCatalog">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:SchemaLocation="http://weblab.kennesaw.edu/toolSchema"
http://weblab.kennesaw.edu/toolSchema.xsd">
</toolPackage>
<toolPackage>
<!-- put the XML for the first kind of tool package here -->
<type>saw</type>
<picLocation>http://weblab.kennesaw.edu/tools/saw.jpg</picLocation>
<weight>1.1</weight>
<price>10.00</price>
</toolPackage>
<toolPackage>
<!-- put the XML for the second kind of tool package here -->
<type>hoe</type>
<picLocation>http://weblab.kennesaw.edu/tools/hoe.jpg</picLocation>
<weight>3.5</weight>
<price>5.00</price>
</toolPackage>
<toolPackage>
<!-- put the XML for the third kind of tool package here -->
<type>spanners</type>
<picLocation>http://weblab.kennesaw.edu/tools/spanners.jpg</picLocation>
<weight>4.0</weight>
<price>40.50</price>
</toolPackage>
<!-- You need at least two more toolPackage elements with contents -->
</toolCatalog>
Error occured in validation
The document has no document element.
Please update and fix it
Explanation / Answer
You need to be sure fo every opening tag there should be a closing tag as well
The valid xml is :
<?xml version="1.0" encoding="utf-8"?>
<toolCatalog>
<toolPackage>
<!-- put the XML for the first kind of tool package here -->
<type>saw</type>
<picLocation>http://weblab.kennesaw.edu/tools/saw.jpg</picLocation>
<weight>1.1</weight>
<price>10.00</price>
</toolPackage>
<toolPackage>
<!-- put the XML for the second kind of tool package here -->
<type>hoe</type>
<picLocation>http://weblab.kennesaw.edu/tools/hoe.jpg</picLocation>
<weight>3.5</weight>
<price>5.00</price>
</toolPackage>
<toolPackage>
<!-- put the XML for the third kind of tool package here -->
<type>spanners</type>
<picLocation>http://weblab.kennesaw.edu/tools/spanners.jpg</picLocation>
<weight>4.0</weight>
<price>40.50</price>
</toolPackage>
<!-- You need at least two more toolPackage elements with contents -->
</toolCatalog>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.