XQuery - insert at a certain position

I would like to add
after Element c.
How can I do that in XQuery ?

[This message was edited by Aykut on 10 Jun 2003 at 13:53.]

The XQuery would be:-

update for $x in input()/a
let $d := <d name="d"/>
do (
 insert $d following $x/c

Hope that helps.

Stuart Fyffe-Collins
Software AG (UK) Ltd.

And an adminstrative note:

There is a forum dedicated to W3C XQuery. Follow this link.
You might want to post such questions there.

Best regards, Christian.

Thank you Stuart!
Thank you Christian!