Hi Tak-po,

Use "update replace" (
http://modis.ispras.ru/sedna/progguide/ProgGuidesu6.html#x12-430002.3 )
statement to achieve this. For example:

UPDATE
replace $p in doc("foo.xml")/a
with <a><b>{$p/m}</b></a>


Ivan Shcheklein,
Sedna Team

On Sat, Jul 11, 2009 at 6:38 PM, Tak-po Li <[email protected]> wrote:

> I am new with Sedna.  What is the best way to insert/remove a node level?
>
> As an example, make
>   <a>
>     <m>
>       ....
>     </m>
>   </a>
> into
>   <a>
>     <b>
>     <m>
>       ....
>     </m>
>     </b>
>   </a>
> and vice verse.
>
> Thanks,
>
> Tak
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to