Example XML to parse:

<books>
    <book>
        <title>The Grapes of Wrath</title>
        <author>John Steinbeck</author>
    </book>
    <book>
        <title>The Pearl</title>
        <author>John Steinbeck</author>
    </book>
</books>

Expected output:

The Grapes of Wrath was written by John Steinbeck
The Pearl was written by John Steinbeck