XmlObject x = XmlObject.Factory.newInstance();
XmlCursor c = x.newCursor();
c.toNextToken();
c.beginElement( "a", "foo.com" );
c.beginElement( "b", "default.com" );
c.beginElement( "c", "bar.com" );
Assert.assertTrue(
x.xmlText( options ).equals( "<foo:a><b><bar:c/></b></foo:a>" ) );