Listing 1 0651 Schmidt 2 07.02.2003 0132 Schulz 1 10.09.2002 !!! Listing 2 0132

Attention: import customer

!!! Listing 3 !!! Listing 4 String driver = "org.apache.xindice.client.xmldb.DatabaseImpl"; Class c = Class.forName(driver); Database database = (Database) c.newInstance(); DatabaseManager.registerDatabase(database); Collection col = DatabaseManager.getCollection("xmldb:xindice:///Products/electronics/mobilePhones "); String xpath = "/"; XPathQueryService service = (XPathQueryService)col.getService("XPathQueryService", "1.0"); ResourceSet resultSet = service.query(xpath); !!! Listing 5 Collection col = DatabaseManager.getCollection("xmldb:xindice:///db/Products/electronics/mobilePho nes"); String data = "dummy"; XMLResource document = (XMLResource) col.createResource(null, "XMLResource"); document.setContent(data); col.storeResource(document); !!! Listing 6 Collection col = DatabaseManager.getCollection("xmldb:xindice:///db"); String xpath = "/Products/*"; XPathQueryService service = (XPathQueryService) col.getService("XPathQueryService", "1.0"); ResourceSet resultSet = service.query(xpath); ResourceIterator results = resultSet.getIterator(); while (results.hasMoreResources()) { Resource res = results.nextResource(); System.out.println((String) res.getContent()); } !!! Listing 7 8 Siemens S55