^^A  Color-code metadata values.
\newcommand{\metavalue}[1]{\textcolor{blue}{#1}}

^^A  Provide access to today's date, as formatted by hyperxmp.sty.
\makeatletter
\let\todayISO=\hyxmp@today
\makeatother

\begin{alltt}
    <?xpacket begin="\string\357\string\273\string\277" id="W5M0MpCehiHzreSzNTczkc9d"?>
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="3.1-702">
       <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description rdf:about=""
               xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
               <pdf:Keywords>
                 \metavalue{energy quanta, Hertz effect, quantum physics}
               </pdf:Keywords>
               <pdf:Producer>\metavalue{pdfTeX-1.40.10}</pdf:Producer>
          </rdf:Description>
          <rdf:Description rdf:about=""
               xmlns:xmpRights="http://ns.adobe.com/xap/1.0/rights/">
             <xmpRights:Marked>\metavalue{True}</xmpRights:Marked>
             <xmpRights:WebStatement>
               \metavalue{http://creativecommons.org/licenses/by-nc-nd/3.0/}
             </xmpRights:WebStatement>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:dc="http://purl.org/dc/elements/1.1/">
             <dc:format>\metavalue{application/pdf}</dc:format>
             <dc:title>
                <rdf:Alt>
                   <rdf:li xml:lang="en">
                     \metavalue{On a heuristic viewpoint concerning the production and
                     transformation of light}
                   </rdf:li>
                   <rdf:li xml:lang="x-default">
                     \metavalue{On a heuristic viewpoint concerning the production and
                     transformation of light}
                   </rdf:li>
                   <rdf:li xml:lang="de">
                     \metavalue{\"Uber einen die Erzeugung und Verwandlung des Lichtes
                     betreffenden heuristischen Gesichtspunkt}
                   </rdf:li>
                </rdf:Alt>
             </dc:title>
             <dc:description>
                <rdf:Alt>
                   <rdf:li xml:lang="en">\metavalue{photoelectric effect}</rdf:li>
                   <rdf:li xml:lang="x-default">\metavalue{photoelectric effect}</rdf:li>
                </rdf:Alt>
             </dc:description>
             <dc:rights>
                <rdf:Alt>
                   <rdf:li xml:lang="en">
                     \metavalue{Copyright (C) 1905, Albert Einstein}
                   </rdf:li>
                   <rdf:li xml:lang="x-default">
                     \metavalue{Copyright (C) 1905, Albert Einstein}
                   </rdf:li>
                </rdf:Alt>
             </dc:rights>
             <dc:creator>
                <rdf:Seq>
                   <rdf:li>\metavalue{Albert Einstein}</rdf:li>
                </rdf:Seq>
             </dc:creator>
             <dc:subject>
                <rdf:Bag>
                   <rdf:li>\metavalue{energy quanta}</rdf:li>
                   <rdf:li>\metavalue{Hertz effect}</rdf:li>
                   <rdf:li>\metavalue{quantum physics}</rdf:li>
                </rdf:Bag>
             </dc:subject>
             <dc:date>
                <rdf:Seq>
                   <rdf:li>\metavalue{1905-03-17}</rdf:li>
                </rdf:Seq>
             </dc:date>
             <dc:language>
                <rdf:Bag>
                   <rdf:li>\metavalue{en}</rdf:li>
                </rdf:Bag>
              </dc:language>
              <dc:type>
                 <rdf:Bag>
                    <rdf:li>\metavalue{Text}</rdf:li>
                 </rdf:Bag>
              </dc:type>
             <dc:source>\metavalue{einstein.tex}</dc:source>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
             <photoshop:AuthorsPosition>
               \metavalue{Technical Assistant, Level III}
             </photoshop:AuthorsPosition>
             <photoshop:CaptionWriter>\metavalue{Scott Pakin}</photoshop:CaptionWriter>
          </rdf:Description>
          <rdf:Description rdf:about=""
              xmlns:pdfaExtension="http://www.aiim.org/pdfa/ns/extension/"
              xmlns:pdfaSchema="http://www.aiim.org/pdfa/ns/schema#"
              xmlns:pdfaProperty="http://www.aiim.org/pdfa/ns/property#"
              xmlns:pdfaType="http://www.aiim.org/pdfa/ns/type#"
              xmlns:pdfaField="http://www.aiim.org/pdfa/ns/field#">
            <pdfaExtension:schemas>
              <rdf:Bag>
                <rdf:li rdf:parseType="Resource">
                  <pdfaSchema:schema>IPTC Core Schema</pdfaSchema:schema>
                  <pdfaSchema:namespaceURI>http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/</pdfaSchema:namespaceURI>
                  <pdfaSchema:prefix>Iptc4xmpCore</pdfaSchema:prefix>
                  <pdfaSchema:property>
                    <rdf:Seq>
                      <rdf:li rdf:parseType="Resource">
                        <pdfaProperty:name>CreatorContactInfo</pdfaProperty:name>
                        <pdfaProperty:valueType>contactinfo</pdfaProperty:valueType>
                        <pdfaProperty:category>external</pdfaProperty:category>
                        <pdfaProperty:description>contact information for the document's creator</pdfaProperty:description>
                      </rdf:li>
                    </rdf:Seq>
                  </pdfaSchema:property>
                  <pdfaSchema:valueType>
                    <rdf:Seq>
                      <rdf:li rdf:parseType="Resource">
                        <pdfaType:type>contactinfo</pdfaType:type>
                        <pdfaType:namespaceURI>http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/</pdfaType:namespaceURI>
                        <pdfaType:prefix>Iptc4xmpCore</pdfaType:prefix>
                        <pdfaType:description>contact information</pdfaType:description>
                        <pdfaType:field>
                          <rdf:Seq>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiAdrExtadr</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact address</pdfaField:description>
                            </rdf:li>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiAdrCity</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact city</pdfaField:description>
                            </rdf:li>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiAdrRegion</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact region</pdfaField:description>
                            </rdf:li>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiAdrPcode</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact postal code</pdfaField:description>
                            </rdf:li>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiAdrCtry</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact country</pdfaField:description>
                            </rdf:li>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiTelWork</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact telephone number</pdfaField:description>
                            </rdf:li>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiEmailWork</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact email address</pdfaField:description>
                            </rdf:li>
                            <rdf:li rdf:parseType="Resource">
                              <pdfaField:name>CiUrlWork</pdfaField:name>
                              <pdfaField:valueType>Text</pdfaField:valueType>
                              <pdfaField:description>contact url</pdfaField:description>
                            </rdf:li>
                          </rdf:Seq>
                        </pdfaType:field>
                      </rdf:li>
                    </rdf:Seq>
                  </pdfaSchema:valueType>
                </rdf:li>
              </rdf:Bag>
            </pdfaExtension:schemas>
          </rdf:Description>
          <rdf:Description rdf:about=""
               xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/">
           <Iptc4xmpCore:CreatorContactInfo rdf:parseType="Resource">
             <Iptc4xmpCore:CiAdrExtadr>\metavalue{Kramgasse 49}</Iptc4xmpCore:CiAdrExtadr>
             <Iptc4xmpCore:CiAdrCity>\metavalue{Bern}</Iptc4xmpCore:CiAdrCity>
             <Iptc4xmpCore:CiAdrPcode>\metavalue{3011}</Iptc4xmpCore:CiAdrPcode>
             <Iptc4xmpCore:CiAdrCtry>\metavalue{Switzerland}</Iptc4xmpCore:CiAdrCtry>
             <Iptc4xmpCore:CiTelWork>\metavalue{031 312 00 91}</Iptc4xmpCore:CiTelWork>
             <Iptc4xmpCore:CiEmailWork>\metavalue{aeinstein@ipi.ch}</Iptc4xmpCore:CiEmailWork>
             <Iptc4xmpCore:CiUrlWork>
               \metavalue{http://einstein.biz/,
               https://www.facebook.com/AlbertEinstein}
             </Iptc4xmpCore:CiUrlWork>
           </Iptc4xmpCore:CreatorContactInfo>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:xmp="http://ns.adobe.com/xap/1.0/">
             <xmp:CreateDate>\metavalue{\todayISO}</xmp:CreateDate>
             <xmp:ModifyDate>\metavalue{\todayISO}</xmp:ModifyDate>
             <xmp:MetadataDate>\metavalue{\todayISO}</xmp:MetadataDate>
             <xmp:CreatorTool>\metavalue{LaTeX with hyperref package}</xmp:CreatorTool>
             <xmp:BaseURL>
               \metavalue{http://mirror.ctan.org/macros/latex/contrib/hyperxmp/}
             </xmp:BaseURL>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/">
             <xmpMM:DocumentID>
               \metavalue{uuid:0595fdce-41dc-e4c4-6c418dc4ce46}
             </xmpMM:DocumentID>
             <xmpMM:InstanceID>
               \metavalue{uuid:efd754c4-1d7f-200a-ef754ce413ea}
             </xmpMM:InstanceID>
          </rdf:Description>
       </rdf:RDF>
    </x:xmpmeta>
    <?xpacket end="w"?>
\end{alltt}
