Write a xml document to store voter id, voter name, address and date of birth details. Create a dtd to validate the document
Answers
Answered by
47
<? xml version = "1.0" encoding = "UTF-8">
<! DOCTYPE Voter_Information
[ <! Element Voter_information (Id, Name, Address, Date_of_birth)>
<! Element Id (#PCDATA)>
<! Element Name (#PCDATA)>
<! Element Address (#PCDATA)>
<! Element Date_of_birth (#PCDATA)>
] >
<Voter_Information>
<Id> Voter Id = FGK99567 </Id>
<Name> Voter Name = Mohan Kumar </Name>
<Address> Address = Assam </Address>
<Date_of_birth> Date of birth = 05-03-1991 </Date_of_birth>
</Voter_Information>
Similar questions
India Languages,
7 months ago
Computer Science,
7 months ago
Hindi,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago
Biology,
1 year ago