1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
$text_xml='<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:svg="http://www.w3.org/2000/svg" xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns="http://www.tei-c.org/ns/1.0" xmlns:dbp="http://monserveur.fr/ns/1.0">
<teiHeader>
</teiHeader>
<text>
<body>
<list>
<head>
<persName>A. Chevallier</persName> -
<title>Dictionnaire des altérations et falsifications
.</title> - <date>1850-1852</date>
</head>
<item>g226_1_f_007__r____</item>
<item>g226_1_f_007__v____</item>
<item>g226_1_f_008__r____</item>
<item>g226_1_f_008__v____</item>
<item>g226_1_f_009__v____</item>
<item>g226_1_f_009__r____</item>
</list>
</body>
</text>
</TEI>';
$file_name='test_text.xml';
// Ecriture du fichier: faite ! contenu décrit ci-dessus.
$db2 = new eXist('/exist/xmlrpc',"monserveur.fr",8080);
$db2->setCredentials ('admin','admin');
$db2->setParamIndent (false);
$db2->setDebug(true);
$db2->createCollection('test_HS');
$db2->getError();
$db2->upload(PATH_APPLICATION.'/test_text.xml', $text_xml); |
Partager