1 2 10 import org.xmldb.api.DatabaseManager; 11 import org.xmldb.api.base.Collection; 12 import org.xmldb.api.base.Database; 13 14 19 public class CliTest { 20 21 24 public static void main( String args[] ) throws Exception { 25 26 Database xmlDB = (Database) 28 Class.forName( "org.ozoneDB.xml.cli.DatabaseImpl" ).newInstance(); 29 30 38 Collection rootCol = xmlDB.getCollection( "xmldb:ozonexml:/home/lars/xmltest?root" ); 40 42 Collection parentCol = rootCol.getParentCollection(); 44 if (parentCol == null) 45 System.out.println( "This Collection doesn't have a parental Collection!" ); 46 47 48 } 49 50 } 51 | Popular Tags |