Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Jul 2017 |
Last Sign in: | 212 Weeks Ago, 1 Day Ago |
Questions Answered: | 15833 |
Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
!!!need help validating the DTD and XML document !!!
Rubric for Week 3 AssignmentPoints1. Add a REQUIRED gender declaration for the <contact> element (an attribute with values of male or female) (In the DTD and XML document)
Â
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE contacts SYSTEM "contacts.dtd">
<contacts>
<employee>
<gender="Male">
<first>Matthew</first>
<last>Bowen</last>
<position>Platoon Sergeant</position>
<address>123 Sunnyside Ln</address>
<phone_number>123-456-7890</phone_number>
<description>Manager</description>
</contacts>
Â
<!ELEMENT contacts (employee+)>
<!ELEMENT employee (gender, first, last, position, address, phone_number+, description)>
<!ATTLIST gender (Male | Female) #REQUIRED>
<!ELEMENT first (#PCDATA)>
<!ELEMENT last (#PCDATA)>
<!ELEMENT position (#PCDATA)>
<!ELEMENT address (#PCDATA)>
<!ELEMENT phone_number (#PCDATA)>
<!ELEMENT description ANY >
<!ATTLIST description type (Employee | Manager) "Manager">Â
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly