xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Xupdate not work! Please help me!
Date Thu, 26 Apr 2007 01:04:49 GMT
michele.mordenti@libero.it wrote:
> Thank you Vadim.
> I had done like you tell me. The error now (always at command line) is:
> 
> trying to register database
> org.xmldb.api.base.XMLDBException: org.apache.xmlrpc.XmlRpcException: Error Compiling
XUpdate Query
>         at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.runRemoteCommand(CollectionImpl.java:119)
>         at org.apache.xindice.client.xmldb.xmlrpc.CollectionImpl.query(CollectionImpl.java:515)
>         at org.apache.xindice.client.xmldb.services.QueryService.queryResource(QueryService.java:70)
>         at org.apache.xindice.client.xmldb.services.XUpdateQueryServiceImpl.updateResource(XUpdateQueryServiceImpl.java:89)
>         at PartsXupdate.main(PartsXupdate.java:28)
> XML:DB Exception occurred 1
> 
> Sigh! I want use xindice!!!!!

There is another error in the xml - you missed a whitespace between attributes. 
XML should be:

          String xupd = "<xupdate:modifications version=\"1.0\"" +
             " xmlns:xupdate=\"http://www.xmldb.org/xupdate\">" +
             "<xupdate:insert-after select=\"/scheda/info/id[value='1']\">" +
             "<xupdate:element name=\"commento\">Bel libro!</xupdate:element>"
+
             "</xupdate:insert-after>" +
             "</xupdate:modifications>";

Note an additional whitespace on second line.

Vadim

Mime
View raw message