testIrregularilyStructured( true);
}
public void testIrregularilyStructured(boolean getContentAsDOM)
throws XMLDBException, ParserConfigurationException, SAXException, IOException, ClassNotFoundException, InstantiationException, IllegalAccessException {
Database database = null;
final String testName = "IrregularilyStructured";
startTime = System.currentTimeMillis();
try {
System.out.println("Running test " + testName + " ...");
// Tell eXist where conf.xml is :
// DWES #### use Configuration.getExistHome()
if ( EXIST_HOME != "" )
System.setProperty("exist.home", EXIST_HOME );
Class<?> dbc = Class.forName("org.exist.xmldb.DatabaseImpl");
database = (Database) dbc.newInstance();
database.setProperty( "create-database", "true" );
DatabaseManager.registerDatabase(database);
Collection coll =
DatabaseManager.getCollection(baseURI, username, password);
XMLResource resource =