Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$dom = simplexml_load_file('http://www.sudoc.fr/119409887.rdf');
$title = (string) current($dom->xpath('//rdf:RDF/*/dc:title'));
$authors = $dom->xpath('//rdf:RDF/*/marcrel:aut/foaf:Person/foaf:name');
print "Titre : $title\n";
print "Auteur(s) :\n";
foreach ($authors as $author) {
print "\t".$author."\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.