Computer Science, asked by nargisrhs6683, 1 year ago

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 omegads03
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