This example presumes that the prefix dc has been bound to the namespace http://purl.org/dc/elements/1.1/ and the prefix rdf is bound to the namespace http://www.w3.org/1999/02/22-rdf-syntax-ns#. Note: The about attribute on the <rdf:Description> in this example gives a URI indicating the resource to which the metadata contained therein refer. The <rdf:Description> in the second <xenoData> block has a blank about, meaning it is pointing at the current document, so the RDF is about the document within which it is contained, i.e. the TEI document containing the <xenoData> block. Similarly, any kind of relative URI may be used, including fragment identifiers (see [[undefined SG-id]]). Do note, however, that if the contents of the <xenoData> block are to be extracted and used elsewhere, any relative URIs will have to be resolved accordingly.
<xenoData
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:RDF><rdf:Description rdf:about="http://www.worldcat.org/oclc/606621663"><dc:title>The description of a new world, called the blazing-world</dc:title><dc:creator>The Duchess of Newcastle</dc:creator><dc:date>1667</dc:date><dc:identifier>British Library, 8407.h.10</dc:identifier><dc:subject>utopian fiction</dc:subject></rdf:Description></rdf:RDF></xenoData><xenoData><rdf:RDF><rdf:Description rdf:about=""><dc:title>The Description of a New World, Called the Blazing-World, 1668</dc:title><dc:creator>Cavendish, Margaret (Lucas), Duchess of Newcastle</dc:creator><dc:publisher>Women Writers Project</dc:publisher><dc:date>2002-02-12</dc:date><dc:subject>utopian fiction</dc:subject></rdf:Description></rdf:RDF></xenoData>
Example
In this example, the prefix rdf is bound to the namespace http://www.w3.org/1999/02/22-rdf-syntax-ns#, the prefix dc is bound to the namespace http://purl.org/dc/elements/1.1/, and the prefix cc is bound to the namespace http://web.resource.org/cc/.
In this example, the prefix dc is again bound to the namespace http://www.openarchives.org/OAI/2.0/oai_dc/, and the prefix oai_dc is bound to the namespace http://www.openarchives.org/OAI/2.0/oai_dc/.
<xenoData
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"><oai_dc:dc><dc:title>The colonial despatches of Vancouver Island and British
Columbia 1846-1871: 11566, CO 60/2, p. 291; received 13 November.
Trevelyan to Merivale (Permanent Under-Secretary)</dc:title><dc:date>1858-11-12</dc:date><dc:creator>Trevelyan</dc:creator><dc:publisher>University of Victoria Humanities Computing and Media
Centre, and UVic Libraries</dc:publisher><dc:type>InteractiveResource</dc:type><dc:format>application/xhtml+xml</dc:format><dc:type>text</dc:type><dc:identifier>http://bcgenesis.uvic.ca/getDoc.htm?id=B585TE13.scx</dc:identifier><dc:rights>This document is licensed under a Creative Commons …</dc:rights><dc:language>(SCHEME=ISO639) en</dc:language><dc:source>Transcribed from microfilm and/or original documents, and
marked up in TEI P5 XML. The interactive XHTML resource is generated
from the XHTML using XQuery and XSLT.</dc:source><dc:source>repository: CO</dc:source><dc:source>coNumber: 60</dc:source><dc:source>coVol: 2</dc:source><dc:source>page: 291</dc:source><dc:source>coRegistration: 11566</dc:source><dc:source>received: received 13 November</dc:source><dc:subject>Trevelyan, Sir Charles Edward</dc:subject><dc:subject>Merivale, Herman</dc:subject><dc:subject>Elliot, T. Frederick</dc:subject><dc:subject>Moody, Colonel Richard Clement</dc:subject><dc:subject>Lytton, Sir Edward George Earle Bulwer</dc:subject><dc:subject>Jadis, Vane</dc:subject><dc:subject>Carnarvon, Earl</dc:subject><dc:subject>British Columbia</dc:subject><dc:description>British Columbia correspondence: Public Offices
document (normally correspondence between government
departments)</dc:description></oai_dc:dc></xenoData>
Example
In this example, the prefix mods is bound to the namespace http://www.loc.gov/mods/v3.
<xenoData
xmlns:mods="http://www.loc.gov/mods/v3"><mods:mods><mods:titleInfo><mods:title>Academic adaptation and cross-cultural
learning experiences of Chinese students at American
universities</mods:title><mods:subTitle>a narrative inquiry</mods:subTitle></mods:titleInfo><mods:name type="personal" authority="local"><mods:namePart/><mods:role><mods:roleTerm authority="marcrelator" type="text">Author</mods:roleTerm></mods:role><mods:affiliation>Northeastern University</mods:affiliation><mods:namePart type="given">Hong</mods:namePart><mods:namePart type="family">Zhang</mods:namePart></mods:name><mods:name type="personal" authority="local"><mods:namePart/><mods:role><mods:roleTerm authority="local" type="text">Advisor</mods:roleTerm></mods:role><mods:namePart type="given">Liliana</mods:namePart><mods:namePart type="family">Meneses</mods:namePart></mods:name><!-- ... --><mods:typeOfResource>text</mods:typeOfResource><mods:genre>doctoral theses</mods:genre><mods:originInfo><mods:place><mods:placeTerm type="text">Boston (Mass.)</mods:placeTerm></mods:place><mods:publisher>Northeastern University</mods:publisher><mods:copyrightDate encoding="w3cdtf" keyDate="yes">2013</mods:copyrightDate></mods:originInfo><mods:language><mods:languageTerm authority="iso639-2b" type="code">eng</mods:languageTerm></mods:language><mods:physicalDescription><mods:form authority="marcform">electronic</mods:form><mods:digitalOrigin>born digital</mods:digitalOrigin></mods:physicalDescription><!-- ... --></mods:mods></xenoData>
Example
This example shows GeoJSON embedded in <xenoData>. Note that JSON does not permit newlines inside string values. These must be escaped as \n. To avoid the accidental insertion of newlines by software, the use of xml:space is recommended. Blocks of JSON should be wrapped in CDATA sections, as they may contain characters illegal in XML.
Note: the example above has been trimmed for legibility. The original may be found linked from Arachosiorum Oppidum/Alexandria. The contributors, listed per the license terms, are R. Talbert, Jeffrey Becker, W. Röllig, Tom Elliott, H. Kopp, DARMC, Sean Gillies, B. Siewert-Mayer, Francis Deblauwe, and Eric Kansa.