question archive Q1

Q1

Subject:SociologyPrice: Bought3

Q1.)Create a well-formed resume in XML for yourself or a fictional person. It should be very short but include tags for name, address, phone number, qualifications, at least three jobs, and at least 2 previous educational achievements. Save it as resume.xml and transfer it to your gl account in swe2016. Note:

  • Include attributes on two different tags and include an entity.
  • In the shiporder example, there was a series of items. It is a good practice to wrap such repeaters in a container tag. Do this for your resume. For the shiporder example: <items><item>abc</item><item>xyz</item></items>

Q2. Now make a DTD for a valid resume. Instead of using an external DTD as we did above, use an internal DTD and add it to your resume.xml file using pico. An example of an internal DTD is at w3schools. Note:

  • Make your qualifications element declared as being either 0 or 1 occurrence.
  • Include a special (non-resume) validation tag at the end of your resume that will be used below.

Q3. Validate your resume.xml file using xmllint on gl. Note:

  • If you give the xmllint command with no options at the command line, you will see the man page that defines all the options (documentation).
  • Include the command-line that you used to validate your document inside the validation tag. Put the URL for your resume.xml on blackboard. Also state whether your resume validated correctly or not.

4. There are also on-line validators from web pages. Paste xml with an internal dtd.

5. Go to the w3schools page on XHTML and read the section on validation (in XML Basic). View the source for that very page and note that it has the declaration for the XHTML DTD.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE