[Previous] [Contents]


Exercise


See the following XML file:

 1: <?xml version="1.0"?>
 2: <memo>
 3:     <meta>
 4:         <from>P. Hermans</from>
 5:         <to>S. North</to>
 6:         <regarding>deadlines</regarding>
 7:     </meta>
 8:     <body>
 9:         <dear>Simon</dear>
10:         <p>I will <verystrong>not</verystrong> be able to finish
11: all chapters before leaving on 11..holidays.</p>
12:         <p>Please advise what to do.</p>
13:         <close>Paul</close>
14:     </body>
15: </memo>

Using this file:

Write down the sequential list of events.
Draw the tree structure.
Indicate in which order the tree is navigated.
For the last p element in the tree, indicate which other nodes still are accessible in the event-driven approach.
For the body element in the tree, indicate which other nodes are still accessible in the tree-based approach.



[Previous] [Contents]