Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

LAB 2: XML DOCUMENTS

2.0 Lab Activities

Activity 1 – Work in pairs and answer the following questions.

1. Creating Well-Formed XML Documents


a. Define a Well-Formed XML Documents
b. Below is the current XML document.

<?xml version="1.0"
standalone="yes"?>
<library>
</library>

Now, let’s add some data:

i. Only ONE (1) namespace


ii. At least FIVE (5) elements
iii. At least FIVE (5) attributes
iv. At least THREE (3) entities references
v. Only ONE (1) comment

Open Editix, type your XML documents and make sure your XML document is
Well-Formed
2. Give ONE (1) examples of Processing Instruction.
3. Differences between PCDATA and CDATA.

You might also like