4 import java
.io
.IOException
;
6 public class RemoveData
extends Base
{
10 public static void main(String
[] args
) throws IOException
, RepositoryException
{
11 RemoveData sd
= new RemoveData();
15 private void run() throws IOException
, RepositoryException
{
16 Repository repository
= getRepository();
18 Session session
= getSession(repository
);
20 Node rootnode
= session
.getRootNode();
22 Node childnode
= null;
24 childnode
= rootnode
.getNode("foo");
27 } catch (PathNotFoundException pnfe
) {
28 System
.out
.println("/foo not found; not removed.");