Re: Xupdate not work! Please help me!

"Todd Byrne" <[email protected]> Thu, 26 Apr 2007 16:15:05 -0600
Newsgroups gmane.text.xml.xindice.user
Message-ID <[email protected]>
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          : [email protected]
> 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-modeā„¢ di Wind
> http://i-mode.wind.it/
>
>
>