The XML file looks like
<contacts>
<contact>
<name>sudhakar</name>
<email>
dvvn_sudha@yahoo.com</email>
<phone>21843949</phone>
<contact>
<contact>
<name>javaking</name>
<phone>383939</phone>
</contact>
</contacts>
The converted flat file would look like this
[contacts]
[contact]
name=sudhakar email=dvvn_sudha@yahoo.com phone=21843949
name=javaking phone=383939
The requirement here is take the xml file as input and using xslt and java generate output file as flatfile.