Create a well-formed XML document that adheres to the following DTD file (called customer.dtd). Use Notepad and save your document as wk8hwpt1.xml to your Desktop. You should include at least 5 customers in your XML document (you will make up or fabricate the specific data associated with each customer). The XML document should start with the following two (2) lines, where the ______ should be filled in with the proper names as exemplified in the textbook in section 15-3a figure 15.17. customer.dtd file: - CUS_ID is a 4-digit number - CUS_DATEIN is the effective membership date of the customer in the company in <3-letter Month> <2-digit year> format (i.e., 01 Dec 20, 12 May 21) - CUS_STATE is a 2-character state abbreviation (all caps) - CUS_ZIP is a 5-digit zip code - CUS_PHONE is in the format xxx-xxx-xxxx - CUS_TAXID is a 9-digit number similar to a social security number (numbers only) - CUS_MBRTYPE can be any of these: DIAMOND, GOLD or SILVER

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
  1. Create a well-formed XML document that adheres to the following DTD file (called customer.dtd). Use Notepad and save your document as wk8hwpt1.xml to your Desktop. You should include at least 5 customers in your XML document (you will make up or fabricate the specific data associated with each customer). The XML document should start with the following two (2) lines, where the ______ should be filled in with the proper names as exemplified in the textbook in section 15-3a figure 15.17.

    <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE ____________ SYSTEM "_____________">

    customer.dtd file:

- CUS_ID is a 4-digit number
- CUS_DATEIN is the effective membership date of the customer in the company in <day> <3-letter Month> <2-digit year> format (i.e., 01 Dec 20, 12 May 21)
- CUS_STATE is a 2-character state abbreviation (all caps)
- CUS_ZIP is a 5-digit zip code
- CUS_PHONE is in the format xxx-xxx-xxxx
- CUS_TAXID is a 9-digit number similar to a social security number (numbers only)
- CUS_MBRTYPE can be any of these: DIAMOND, GOLD or SILVER

 
 
customer.dtd file:
<!ELEMENT Custonerdata (Customer+)>
<!ELEMENT Custoner (CUS_ID,CUS_DATEIN,CUS_LNAME, CUS_FNAME ,CUS_ADDR1,CUS_ADDR2?,
Cus_CITY,CUS_STATE,CUS_ZIP,CUS_CNTRY?,Cus_PHONE ,CUS_EMAIL,CUS_TAXID,CUS_MBRTYPE?)>
<!ELEMENT CCUS_ID
<!ELEMENT CUS_DATEIN
<!ELEMENT CUS LNAME
<!ELEMENT CUS_FNAME
<!ELEMENT CUS ADDR1
<!ELEMENT CUS_ADDR2
<!ELEMENT CUS_CITY
<!ELEMENT CUS_STATE
<!ELEMENT CUS_ZIP
<!ELEMENT CUS_CNTRY
<!ELEMENT CUS_PHONE
<!ELEMENT CUS EHAIL
<!ELEMENT CUS_TAXID
<!ELEMENT CUS_MBRTYPE
(#PCDATA )>
( #PCDATA )>
( #PCDATA )>
(#PCDATA )>
(#PCDATA )>
( #PCDATA )>
( #PCDATA )>
( #PCDATA )>
( #PCDATA )>
( #PCDATA )>
(#PCDATA )>
(#PCDATA )>
( #PCDATA )>
(#PCDATA )>
Transcribed Image Text:customer.dtd file: <!ELEMENT Custonerdata (Customer+)> <!ELEMENT Custoner (CUS_ID,CUS_DATEIN,CUS_LNAME, CUS_FNAME ,CUS_ADDR1,CUS_ADDR2?, Cus_CITY,CUS_STATE,CUS_ZIP,CUS_CNTRY?,Cus_PHONE ,CUS_EMAIL,CUS_TAXID,CUS_MBRTYPE?)> <!ELEMENT CCUS_ID <!ELEMENT CUS_DATEIN <!ELEMENT CUS LNAME <!ELEMENT CUS_FNAME <!ELEMENT CUS ADDR1 <!ELEMENT CUS_ADDR2 <!ELEMENT CUS_CITY <!ELEMENT CUS_STATE <!ELEMENT CUS_ZIP <!ELEMENT CUS_CNTRY <!ELEMENT CUS_PHONE <!ELEMENT CUS EHAIL <!ELEMENT CUS_TAXID <!ELEMENT CUS_MBRTYPE (#PCDATA )> ( #PCDATA )> ( #PCDATA )> (#PCDATA )> (#PCDATA )> ( #PCDATA )> ( #PCDATA )> ( #PCDATA )> ( #PCDATA )> ( #PCDATA )> (#PCDATA )> (#PCDATA )> ( #PCDATA )> (#PCDATA )>
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education