[CD] Modify your solution to Exercise 5.5 by placing the Java code (Fig. 5.12) inside a CDATA section. Then render the document in IE5. Other than the syntax coloring, the Java code should be displayed exactly as shown in Fig. 5.12.

What will be an ideal response?


```
<?xml version = "1.0"?>

<!-- Exercise 5.6 Solution -->
 <!-- Marking java code -->

<javaCode>
 <![CDATA[
 if ( ( m == month && d == day ) ||
 ( month == -1 && d == day ) ||
 ( m == month && day == -1 ) ||
 ( month > -1 && day >= -1 ) ) {
 resultDay = "DATE: D " + d + " M " + m ;
 processChildNodes( dateElement.getChildNodes() );
 }
 else
 return;
 ]]>
 </javaCode>
```

13174

Computer Science & Information Technology

You might also like to view...

____________________ can be graphics, text, or buttons with hotspots that, when clicked with a mouse, take you to a related section of the same Web page, another Web page in the same site, or another Web site altogether.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The three types of control statements are the sequence statement, the selection state- ment and the statement.

a) repeat b) looping c) redo d) repetition

Computer Science & Information Technology

The 1976 Copyright Act defines ____________________ as the distribution of copies of a work to the public by sale or other transfer of ownership, or by rental, lease, or lending.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A company has installed a new 802.11g point-to-point connection between two buildings and is experiencing low throughput across the link. The current setup involves a wireless bridge on the roof with an omnidirectional antenna. Which of the following would BEST improve the link performance?

A. Replace the omnidirectional antennas with Yagi antennas. B. Configure channel hopping on both wireless bridges. C. Replace the wireless bridges with wireless access points. D. Install bidirectional amplifiers at both sites

Computer Science & Information Technology