Hi todd! Thank you for help! I want update this document:
Document '1.xml' <?xml version="1.0"?> <scheda> <info> <id value="1" /> <team>gruppo8</team> <origine>http//www.bol.it/home/hp</origine> <dataUltimaVersione>20060505</dataUltimaVersione> </info> <dati> <autore> <nome>e. annie</nome> <cognome>prolux</cognome> </autore> <titolo>i segreti di brokeback mountain</titolo> <testo> <contenuto originale="false" urlFonte="http://www.bol.it/libri/scheda/ea978888490832.html">Questo libro &#รจ;composto da meno di cento pagine in tutto. Eppure, a leggerle e si leggono d'un fiato - si ha l&apos....... </contenuto> </testo> <genere>romanzo</genere> <editore>baldini castoldi dalai</editore> <titoloOriginale>brokeback mountain</titoloOriginale> <copertina src="http://www.bol.it/bol/includes/tornaImmagine.jsp?cdSoc=BL&ean=978888490832&tipoOggetto=PIB&cdSito=BL" alt="Copertina I segreti di Brokeback Mountain" /> <anno>2005</anno> </dati> <temporaryXUpdateTree> <commento>Bel libro</commento> </temporaryXUpdateTree> </scheda> For you, why compare "temporaryXUpdateTree" at the end? Thank you. Bye ---------- Initial Header ----------- >From : "Todd Byrne" [EMAIL PROTECTED] To : xindice-users@xml.apache.org Cc : Date : Thu, 26 Apr 2007 16:15:05 -0600 Subject : Re: Xupdate not work! Please help me! > Well, you just need to specify more exactly what your trying to update... I > have only seen that happen when I have tried to update a file with a > multiple line update statement and parts of the rest of the update don't > match elements inside the document. > > Is that the entire update that your sending? > > Can you send the document that this "temporarytree" is showing up on? > > Todd > > String xupd = "<xupdate:modifications version=\"1.0\"" + > " > xmlns:xupdate=\"http://www.xmldb.org/xupdate\<http://www.xmldb.org/xupdate%5C>">" > + > "<xupdate:insert-after select=\"/scheda/info/id[value='1']\">" + > "<xupdate:element name=\"commento\">Bel > libro!</xupdate:element>" + > "</xupdate:insert-after>" + > "</xupdate:modifications>"; > > > On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Thank you very much, Vadim and Todd. > > My project can restart. > > Bye > > > > ---------- Initial Header ----------- > > > > From : "Todd Byrne" [EMAIL PROTECTED] > > To : xindice-users@xml.apache.org > > Cc : > > Date : Thu, 26 Apr 2007 15:19:01 -0600 > > Subject : Re: Xupdate not work! Please help me! > > > > > > > > > > > > > > > > > Its a bug with XUpdate if the select statement fails to select an item > > it > > > doesn't clean up after its self and leaves the temporary tree. Not much > > you > > > can do other then not create updates for elements that don't exist in > > the > > > documents that you are updating. > > > > > > Todd > > > > > > On 4/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > > wrote: > > > > > > > > Thank Vadim for response!!! > > > > Now, it is work!!! > > > > I'm very happy! I have also correct the line: > > > > > > > > String xupd = "<xupdate:modifications version=\"1.0\"" + > > > > " xmlns:xupdate=\"http://www.xmldb.org/xupdate\">" > > > > > > > > in: > > > > > > > > String xupd = "<xupdate:modifications version=\"1.0\"xmlns:xupdate=' > > > > http://www.xmldb.org/xupdate'>" > > > > > > > > Now the strange thing is that it doesn't make a new node "commento" > > after > > > > node "id", but it makes a new node: > > > > <temporaryXUpdateTree><commento>Bel > > > > libro</commento></temporaryXUpdateTree> > > > > > > > > at the end of the file. > > > > Why??? > > > > Thank for help! > > > > Bye > > > > > > > > > > > > > > > > ------------------------------------------------------ > > > > Leggi GRATIS le tue mail con il telefonino i-modeTM di Wind > > > > http://i-mode.wind.it/ > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------ > > Leggi GRATIS le tue mail con il telefonino i-modeTM di Wind > > http://i-mode.wind.it/ > > > > > > > ------------------------------------------------------ Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom http://click.libero.it/infostrada