1 Here goes document tree with a recursive Velocity macro :
2
3 <document>
4 <properties>
5 <author>
6 <email>
7 sunnyg@sunnyg.com
8 </email>
9 <name>
10 <lastname>
11 Gavaskar
12 </lastname>
13 <first>
14 Sunil
15 </first>
16 <fullname>
17 Sunil Gavaskar
18 </fullname>
19 </name>
20 </author>
21 <title>
22 Sunny Days
23 </title>
24 </properties>
25 <body>
26 Sunny within a body.
27 </body>
28 </document>
29
30
31 Now accessing data directly :
32
33 email : sunnyg@sunnyg.com
34 last name : Sunil Gavaskar
35