1 Dec 2005 06:57
Update 0 modifications
Eddie D <edvard_d <at> hotmail.com>
2005-12-01 05:57:08 GMT
2005-12-01 05:57:08 GMT
I'm still having problems with the update. The ""insert update <test/> into /eforms/forms works fine in the exist client but within my code through the REST interface i keep geting the response 0 modifications. I have tryed puting the doc() or document() tags in as well and that didn't make any difference.
Request:
<?xml version="1.0"?>
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:append select="/eforms/forms" child="last()">
<xupdate:element name="form">
<test>TEST</test>
</xupdate:element>
</xupdate:append>
</xupdate:modifications>
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:append select="/eforms/forms" child="last()">
<xupdate:element name="form">
<test>TEST</test>
</xupdate:element>
</xupdate:append>
</xupdate:modifications>
Response:
<?xml version='1.0'?>
<exist:modifications mlns:exist='http://exist.sourceforge.net/NS/exist' count='0'>0modifications processed.</exist:modifications>
<exist:modifications mlns:exist='http://exist.sourceforge.net/NS/exist' count='0'>0modifications processed.</exist:modifications>
Request:
<?xml version="1.0" encoding="UTF-8"?>
<query xmlns="http://exist.sourceforge.net/NS/exist" start='1' max='5000'>
<text>
<![CDATA[update insert <test></test> into /eforms/forms]]>
</text>
<properties>
<property name="indent" value="yes"/>
<property name="encoding" value="UTF-8"/>
</properties>
</query>
<query xmlns="http://exist.sourceforge.net/NS/exist" start='1' max='5000'>
<text>
<![CDATA[update insert <test></test> into /eforms/forms]]>
</text>
<properties>
<property name="indent" value="yes"/>
<property name="encoding" value="UTF-8"/>
</properties>
</query>
Response:
<exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="0" exist:start="1" exist:count="0"/>
URL: http://localhost:8080/exist/servlet/db/eforms/dr/filledforms/
File Name: eforms.xml
File Contents: <?xml version="1.0" encoding="UTF-8"?><forms/>
File Name: eforms.xml
File Contents: <?xml version="1.0" encoding="UTF-8"?><forms/>
thanks eddie
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
Christoph
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
RSS Feed