This code sample is adapted from Clifford B. Anderson and Joseph C. Wicentowski, XQuery for Humanists (College Station: Texas A&M University Press, 2020), 214. Download this code sample in its raw form. View the source on GitHub.

<person sex="M" xml:id="alcuin_of_york">
    <persName>Alcuin of York</persName>
    <residence>
        <placeName>
            <region>Kingdom of Northumbria</region>
        </placeName>
    </residence>
    <birth notBefore="0734" notAfter="0736">c. 735</birth>
    <death when="0804-05-19"/>
</person>