Sample XML Format for FOP Reporting

Using the below example, you can create an XML which contains name and a list of friends with contact numbers:

Sample XML Format for FOP Reporting

<?xml version="1.0" encoding="utf-8"?>
<root>
<name>Ryan</name>
<friend>
<name>David</name>
<phNo>+1.603.555.0100</phNo>
</friend>
<friend>
<name>John</name>
<phNo>+1.603.555.0101</phNo>
</friend>
</root>
Note: This is how an XML should be generated with encoded UTF-8 format.