subject

The document contains a root element named products with one or more occurrences of the product element containing information on map products. The product element contains five child elements— name, versionDate, desc, an optional isbn, and price. The name element stores the name of the product and supports two attributes—pid, the ID number of the product; and category, the type of product (historical, state, or parks). The versionDate element also supports an optional surveyDate attribute that indicates the date of the map survey, if known. The desc element stores a description of the product. The optional isbn element stores the ISBN for the product. The price element stores the name of the product and supports two attributes—format, the format of the product (flat or raised) with a default of flat; and media, the media type of the product (paper or electronic). For this document, Benjamin wants to enforce a document structure to ensure that information recorded in the document is valid. Therefore, your task will be to create the DTD for the document.
Complete the following:
1. Using your text editor, open the prodtxt. xml file from the xml02  review folder provided with your Data Files, enter your name and today’s date in the comment section of the file, and then save the file as products. xml.
In the products. xml file, insert an internal DTD for the root element products directly after the comment section and before the opening tag.
3. Within the internal DTD, declare the following items:
a. The products element, containing at least one occurrence of the child element product
b. The product element, containing five child elements in the sequence name, version Date, desc, an optional isbn, and price
c. The name, versionData, desc, isbn, and price elements, each containing parsed character data
4. Add the following attribute declarations to the product file:
a. For the name element, a required pid attribute as an ID
b. For the name element, a required category attribute equal to historical, state, or parks Carey, Patrick; Vodnik, Sasha. New Perspectives on XML, Comprehensive (p. XML 122). Cengage Learning. Kindle Edition.
c. For the versionDate element, an optional surveyDate attribute containing the date of the survey
d. For the price element, an optional format attribute equal to either flat or raised, with a default of flat
e. For the price element, a required media attribute equal to either paper or electronic
5. On the same line as the format attribute definition, insert a comment containing the text format default is flat.
6. Save your changes to the products. xml file, and then use Exchanger XML Editor or another XML tool to verify that the document is well formed.
7. Validate the document. If necessary, correct errors one at a time and revalidate until the document is valid.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:30
Advantages and disadvantages of binary system
Answers: 1
question
Computers and Technology, 22.06.2019 02:00
The word ‘play’ comes with many different interpretations and a variety of definitions. discuss some of the various meanings tied to the word play. why is the concept of play thought to be an important addition to the workplace? do some (brief) research online and give an example of how play in the workplace is being done right.
Answers: 2
question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
You know the right answer?
The document contains a root element named products with one or more occurrences of the product elem...
Questions
Questions on the website: 13722359