[EMAIL PROTECTED] 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