xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "michele\.mordenti\@libero\.it" <michele.morde...@libero.it>
Subject Re: Xupdate not work! Please help me!
Date Thu, 26 Apr 2007 07:44:11 GMT
Hi Vadim. 
Unfortunately persist the error: 


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


So, for you, the error is due to only syntax's java.I hope that the problem isn't more complicated
 ;-).
Another correction to do, for you?
Thank you.
Bye




---------- Initial Header -----------

>From      : "Vadim Gritsenko" vadim@reverycodes.com
To          : xindice-users@xml.apache.org
Cc          : 
Date      : Wed, 25 Apr 2007 21:04:49 -0400
Subject : Re: Xupdate not work! Please help me!







> 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
> 


------------------------------------------------------
Leggi GRATIS le tue mail con il telefonino i-modeĀ™ di Wind
http://i-mode.wind.it/



Mime
View raw message