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

<hit score="0.79">
    <title>The Secretary of State to the Consul at Taipei (Edgar)</title>
<hit score="0.03">
    <title>The Ambassador in China (Stuart) to the Secretary of State</title>