jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sridhar Raman" <sridhar.ra...@gmail.com>
Subject Moving nodes from one parent to another?
Date Fri, 29 Dec 2006 05:59:19 GMT
Hi

I have the following two nodes, with the children:
/AB:Entities/AB:entity
/AB:Entities/AB:entity[2]
/AB:Entities/AB:entity[3]
...
...
/AB:Entities[2]/AB:entity
/AB:Entities[2]/AB:entity[2]
/AB:Entities[2]/AB:entity[3]
...
...

I want to put all the AB:entity nodes under a single parent - AB:Entities.
So, how do I do the moving?

I tried a session.move("/AB:Entities[2]", "/AB:Entities"). But it does
nothing. Neither does it throw an exception. When I save the session and
display the contents, it is as it was earlier. No change!

Any help would be appreciated.

Thanks in advance,
Sridhar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message