HTML and CSS Reference
In-Depth Information
Make It Right continued
(a)
unformatted plant
catalog XML data items
table
navigation
buttons
table value of
XML instance
(b)
Figure 12-49
Perform the following tasks:
1. Open make12-1plant_list_error.xml in Notepad++ and save it as make12-1plant_list_solution.xml.
2. Activate the browser. Enter G:\Chapter12\MakeItRight\make12-1plant_list_solution.xml in the
Address box to view the XML document in your browser. Make note of the last instance that displays.
3. Correct the error in Notepad++ and then save the XML file. Activate the browser and refresh the
Web page. Make sure the XML file is error-free before continuing.
4. Open make12-1schema_error.xsd in Notepad++ and save it as make12-1schema_solution.xsd.
5. Activate your browser. Enter www.corefiling.com/opensource/schemaValidate.html in the Address
box to view the CoreFiling XML Schema validator Web page in your browser.
6. Click the Browse button next to the XML Schema input text field. Navigate to your storage device
and select the make12-1schema_error.xsd file (this file has the errors).
7. Click the Browse button next to the XML Instance text field. Navigate to your storage device and
select the make12-1plant_list_solution.xml file (this is your corrected XML instance document).
8. Click the Validate button. When the “Your results are ready” page displays, click the “Click here”
link to see an error message regarding the invalid XSD file. The list of errors will describe three
errors in the XML file, but two of those errors relate to the XSD Schema file.
 
Search WWH ::




Custom Search