Ejemplo n.º 1
0
 /**
  * Inserts a new document into the database or replace an existing one:
  *
  * @param string $docName Path to the database location where the new document is to be stored.
  * @param string $xml XML content of this document as a UTF-8 encoded byte array.
  * @param boolean $overWrite Set this value to > 0 to automatically replace an existing document at the same location.
  * @link http://exist-db.org/exist/apps/doc/devguide_xmlrpc.xml?id=D2.2.4#D2.2.4.6
  */
 public function storeDocument($docName, $xml, $overWrite = false)
 {
     $this->client->parse($xml, $this->collection . $docName, $overWrite ? 1 : 0);
 }