{
TestStore store = new TestStore(org.openuri.mytest.SimpleDocument.type);
TestStore.Cursor cursor = store.newCursor();
System.err.println("Got store, filling it in...");
cursor.addChild(new Name("http://openuri.org/mytest", "simple"));
cursor.toFirstChild();
cursor.setAttribute(new Name(null, "note"), "a smallish number");
cursor.setText("143");
cursor.toRoot();
cursor.toFirstChild();
Simplicity simp = (Simplicity)cursor.obj();
System.err.println("The value of simplicity: " + simp.intValue());
System.err.println("And a note: " + simp.getNote());
}
else
{
TestStore store = new TestStore(org.openuri.mytest.CustomerDocument.type);
TestStore.Cursor cursor = store.newCursor();
System.err.println("Got store, filling it in...");
cursor.addChild(new Name("http://openuri.org/mytest", "customer"));
cursor.toFirstChild();
cursor.addChild(new Name("http://openuri.org/mytest", "firstname"));
cursor.addChild(new Name("http://openuri.org/mytest", "number"));
cursor.addChild(new Name("http://openuri.org/mytest", "number"));
cursor.addChild(new Name("http://openuri.org/mytest", "birthday"));
cursor.addChild(new Name("http://openuri.org/mytest", "number"));
cursor.addChild(new Name("http://openuri.org/mytest", "number"));
cursor.addChild(new Name("http://openuri.org/mytest", "birthday"));
cursor.toFirstChild();
cursor.setText("Howdy");
cursor.toNext();
cursor.setText("436");
cursor.toNext();