コード例 #1
0
ファイル: OmekaXml.php プロジェクト: kyfr59/cg35
 /**
  * Appends Dublin Core metadata.
  *
  * Appends a metadata element, an child element with the required format,
  * and further children for each of the Dublin Core fields present in the
  * item.
  */
 public function appendMetadata($item, $metadataElement)
 {
     $omekaXml = new Output_ItemOmekaXml($item, 'item');
     $node = $omekaXml->getDoc()->documentElement;
     $node = $metadataElement->ownerDocument->importNode($node, true);
     $metadataElement->appendChild($node);
 }
コード例 #2
0
ファイル: show.omeka-xml.php プロジェクト: lchen01/STEdwards
<?php

$omekaXml = new Output_ItemOmekaXml($item, 'item');
echo $omekaXml->getDoc()->saveXML();