Xml Is Important

Submitted by: Submitted by

Views: 10

Words: 479

Pages: 2

Category: Business and Industry

Date Submitted: 05/09/2016 05:05 AM

Report This Essay

XML 01

Well Formed XML

You may find lecture slides from Week 4 to be helpful.

Marking Up Text

Invent some tags that could be used to mark up the following text.

Mark up each of the poems slightly differently.

Add a prolog and a root tag so that you have an XML document.

Try to make sure that your XML document is well formed.

Reflections on Ice-Breaking - Ogden Nash

Candy

Is Dandy

But liquor

Is quicker.

Celery - Ogden Nash

Celery, raw

Develops the jaw

But celery, stewed,

Is more quietly chewed.

Everybody Tells Me Everything - Ogden Nash

I find it very difficult to enthuse

Over the current news.

Just when you think that at least the outlook is so black that it can grow no blacker, it worsens,

And that is why I do not like the news, because there has never been an era when so many things were going so right for so many of the wrong persons.

The Hunter - Ogden Nash

The hunter crouches in his blind

'Neath camouflage of every kind,

And conjures up a quacking noise

To lend allure to his decoys.

This grown up man, with pluck and luck,

Is hoping to outwit a duck.

Checking if XML Documents are Well Formed

Look at each of the examples of XML code below and decide whether each is well formed

(whether it obeys the basic syntax rules for XML).

When you have made your decision, test each example (one at a time) using the text box under

Verify Your XML Syntax

To help syntax-check your XML, paste the XML code in the text area below, and press the "Verify XML" button.

on the web page at http://www.w3schools.com/Dom/dom_validate.asp

Note: We are validating the DOM for the document, we are not validating the document.

If the code is not well formed, edit it to correct the errors.

Example 1 (which may already be in the text box described above)

Tove

Jani

Reminder

Don't forget me this weekend!

Example 2

It is a truth...