[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>
```
Computer Science & Information Technology
You might also like to view...
Can the BubbleSort be changed so it sorts from high to low? What do you need to change in the code to make this happen?
What will be an ideal response?
Computer Science & Information Technology
When a form is loaded as modeless, other forms in the application can be accessed by the user.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology