XML Document Anatomy

XML’s rules for distinguishing between markup and content are :

1.The start of markup is identified by either the less-than symbol (<) or the ampersand character (&).

2. Three other characters are also treated as markup characters: the greater-than symbol (>), the apostrophe or single quote, (), and the (double) quotation mark ().

3.If you want to use any of the preceding special characters as normal characters, you must “escape” them by using the general entities that represent them.

To escape a character means to conceal it from a subsequent software package or process. It is often used in computing terms to refer to prefixing certain characters in programming languages with a special character string to prevent them from being interpreted as special characters.

Originally the ESC (escape) character string was used to prefix commands sent to the printer itself to control such things as the font or page size and distinguish the command strings from printable characters.

4.Everything that is not markup is content (character data).


The following code shows the XML code for a Web home page. This is a very simple example, but it contains all the important parts that you will find in nearly all XML documents.



1: <?xml version=”1.0”?>
2: &lthome.page>
3: &lthead>
4: &lttitle>
5: My Home Page
6: </title>
7: &ltbanner source=”topbanner.gif”/>
8: </head>
9: &ltbody>
10: &ltmain.title>
11: Welcome to My Home Page
12: </main.title>
13: &ltrule/>
14: &lttext>
15: &ltpara>
16: Sorry, this home page is still
17: under construction. Please come
18: back soon!
19: </para>
20: </text>
21: </body>
22: &ltfooter source=”foot.gif”/>
23: </home.page>



Related Post

XML Introduction

TESTING CONSTRAINTS PART TWO

LIFE CYCLE TESTING

TEST METRICS

Independent Software Testing

Test Process

Testing verification and validation

Functional and structural testing

Static and dynamic testing

V model testing

Eleven steps of V model testing

Structural testing

Execution testing technique

Recovery Testing technique


Operation testing technique


Compliance software testing technique

Security testing technique

No comments:

Post a Comment