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

<person xml:id="alcuin_of_york">
    <persName>Alcuin of York</persName>
    <residence>
        <placeName>
            <place>Northumbria</place>
        </placeName>
    </residence>
    <birth when="0735">c. 735</birth>
    <death when="0804-05-19"/>
</person>