Need help with xml I fell behind again catalogtxtxml Tunis R

Need help with xml I fell behind again

//catalogtxt.xml

<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>
<!--
New Perspectives on XML

Case Problem 1

Catalog of photos from the Our Lady of Bergen Historical Society
Author:
Date:   

Filename: catalog.xml
Supporting Files: catalog.xsd
-->

<catalog>

<photo cid=\"c1748\" donatedBy=\"John Borelli\">
<name metadata=\"tunis cooper property museum\">Tunis R. Cooper property</name>
<description>
<![CDATA[
This photo was taken by John Borelli\'s great-grandfather. It is believed to have been taken around 1830.
David Demarest originally purchased the site of the chair factory in 1663. This site was under the ownership
of the Demarest family until 1758. The property is listed in the National and New Jersey Registers of Historic Places.
]]>
</description>
<date>circa 1830</date>
<images>
<img src=\"1748a.jpg\" />
<img src=\"1748b.jpg\" />
</images>
</photo>

<photo cid=\"c1749\" donatedBy=\"John Borelli\">
<name metadata=\"tunis cooper property museum\">Tunis R. Cooper property</name>
<description>
<![CDATA[
A more recent picture of the property taken by the Borelli family. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>circa 1950</date>
<images>
<img src=\"1749a.jpg\" />
</images>
</photo>

<photo cid=\"c1411\" donatedBy=\"Saint Johns Catholic Church\">
<name metadata=\"saint johns catholic church\">Saint Johns Church</name>
<description>
<![CDATA[
A more recent picture of the property taken by the Borelli family. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>1921</date>
</photo>


<photo cid=\"c2003\" donatedBy=\"Linda Choo\">
<name metadata=\"bergenfield elementary school\">Bergenfield School</name>
<description>
<![CDATA[
The No. 5 Public School, a.k.a. Bergenfield School
]]>
</description>
<date>circa 1920</date>
<images>
<img src=\"2003a.jpg\" />
<img src=\"2003b.jpg\" />
</images>
</photo>

<photo cid=\"c2078\" donatedBy=\"Maria Giodelli\">
<name metadata=\"coopers pond water\">Coopers Pond</name>
<description>
<![CDATA[
A favorite spot where we used to go hang out as kids. The picture shows my brothers Robert and Michael.
]]>
</description>
<date>May 4, 1941</date>
<images>
<img src=\"2078a.jpg\" />
</images>
</photo>

<photo cid=\"c2079\" donatedBy=\"Linda Uffington\">
<name metadata=\"watch timekeeping pocket railway\">Pocket Watch</name>
<description>
<![CDATA[
A more recent picture of the property taken by the Borelli family. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>circa 1870</date>
<images>
<img src=\"2079a.jpg\" />
<img src=\"2079b.jpg\" />
</images>
</photo>

<photo cid=\"c3233\">
<name metadata=\"hotel\">Bergenfield Hotel</name>
<description>
<![CDATA[
The Knollfield Hotel was known as the Bergenfield Hotel. The property is listed in the
National and New Jersey Registers of Historic Places.
]]>
</description>
<date>circa 1920</date>
</photo>

<photo cid=\"c3433\">
<name metadata=\"sweeney coal fuel\">Sweeney Coal</name>
<description>
<![CDATA[
Sweeney Fuel Company located near New Bridge Road and railroad tracks.
]]>
</description>
<date>1920</date>
<images>
<img src=\"3433a.jpg\" />
<img src=\"3433b.jpg\" />
<img src=\"3433c.jpg\" />
</images>
</photo>

</catalog>

//catalogtxt.xsd

<?xml version=\"1.0\" encoding=\"UTF-8\" ?>
<!--
New Perspectives on XML

Case Problem 1

Catalog of photos from the Our Lady of Bergen Historical Society
Author:
Date:   

Filename: catalog.xsd
Supporting Files: catalog.xml
-->

Complete the following: 1. Using your XML editor, open the catalogtxt.xml and catalogtxt.xsd files from the xml03 casel folder, enter your name and today\'s date in the comment section of each file, and then save the files as catalog.xml and catalog, xsd, respectively. 2. Go to the catalog,xsd file in your text editor. Add the root schema element to the document and declare the XML Schema namespace using the xs prefix. 3. Attach the schema file catalog.xsd to the instance document, indicating that the schema and instance document do not belong to any namespace. Tutorial 3 Valldating Documents with Schemas IXML 4. Create the following named simple types: a. c1aType, based on the ID data type and restricted to the regular expression pattern cla(4) b. nroTypo, based on the string data type and restricted to the regular expression pattern 5. Declare the catalog element containing the child element photo. The photo element must occur at least once, but its upper limit is unbounded. 6. Declare the photo element containing the following sequence of nested child elements name, description, date, and 1mages. Set the following properties forthe nested elements: a. All of the child elements should contain string data. The name element should also support the metadata attribute. b. The c1d attribute is required. The donatedBy attribute is optional. 7. Declare the lag element. It has no content and contains a required attribute, src 8. Declare the following attributes and elements: a. The attribute metadata must have the string data type. b. The attribute cld must have the c1dType data type. The attribute srce must have the sroType data type. d. The attribute donatedBy must have the string data type. e. The element descript1on must have the string data type. f. The element date must have the string data type 9. Save your changes to the catalog, xsd file, and then validate theschema. Continue to correct any validation emors you discover until the schema validates, 10. Validate the catalog.xml file against the schema. Continue to correct any validation errors you discover until the instance document validates. XML 1

Solution

img :
<!DOCTYPE html>
<html>
<head>
<title>HTML Tag</title>
</head>
<body>
<img src=\"xxxxxxxxxxxxxxxxx\" alt=\"xxxxx\" height=\"150\" width=\"140\" />
</body>
</html>
The src attribute is empty or null.
The specified src URL is the same as the URL of the page the user is currently on.
The specified image is corrupted in some way that prevents it from being loaded.
The specified image\'s metadata is corrupted in such a way that it\'s impossible to retrieve its dimensions, and no dimensions were specified in the <img> element\'s attributes.
The specified image is in a format not supported by the user agent.

Need help with xml I fell behind again //catalogtxt.xml <?xml version=\
Need help with xml I fell behind again //catalogtxt.xml <?xml version=\
Need help with xml I fell behind again //catalogtxt.xml <?xml version=\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site