The following is the sample output file. Individual jobs are indented through xslt. Need header bit to be indented as well.
<message><header userid="" date="08/01/2014"><schema version="1" name="New" /><source productversion="" product="" system="" /><destination productversion=""
product="" system="" /></header><body><jobs><job action="" contract="65" client_ref="4162213" description="OUT OF HOURS - no hot water " job_type="ELECR" required_date="03/12/2013
00:00">
<job_lines>
<job_line line_no="1" line_type="WE" code="Z04" description="OUT OF HOURS - TOTAL LOSS OF ELECTRICAL HEATING 1ST NOV TO 30TH APR" quantity="1">
</job_line>
</job_lines>
<job_property ref="72121095" alt_ref="43558" name="44-49 Floor 7 FLAT 44
" short_name="44-49 Floor 7 FLAT 44 " house_no="44 " street="Grantham Towers"
address_line_1="44-49 Floor 7 FLAT 44 " tenant="Mr S Tsegaye">
</job_property>
<job_notes>
</job_notes>
<job_lines>
<job_line line_no="1" line_type="XE" code="Z04" description="OUT OF HOURS - TOTAL LOSS OF Power failure 1ST NOV TO 30TH APR" quantity="1">
</job_line>
</job_lines>
<job_property ref="72121096" alt_ref="43565" name="89 Floor 17 FLAT 34
" short_name="89 Floor 17 FLAT 34 " house_no="89 " street="Grantham Towers"
address_line_1="89 Floor 17 FLAT 34 " tenant="Mr S Tsegaye">
</job_property>
<job_notes>
</job_notes>
</job></jobs></body></message>
The expected output is as follows
<message>
<header userid="" date="20/12/13">
<schema version="1" name="new" />
<source productversion="" product="" system="" />
<destination productversion="" product="" system=""/>
</header>
<body>
<jobs>
<job action="" .............
- Edited by
ragavalli
Friday, January 10, 2014 1:57 PM