01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Core License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: Test.java,v 1.1 2001/12/18 10:31:31 per_nyfelt Exp $
08:
09: package org.ozoneDB.core.xml;
10:
11: import java.io.*;
12: import java.util.*;
13:
14: import org.ozoneDB.DxLib.*;
15: import org.ozoneDB.*;
16: import org.ozoneDB.core.*;
17:
18: import org.xml.sax.ContentHandler;
19:
20: import org.apache.xml.serialize.*;
21:
22: /**
23: * @version $Revision: 1.1 $
24: * @author <a href="http://www.softwarebuero.de">SMB</a>
25: */
26: public class Test {
27:
28: public static void main(String[] args) throws Exception {
29: DxHashMap obj = new DxHashMap();
30: obj.addForKey("Hallo", "Hallo");
31:
32: XMLSerializer serializer = new XMLSerializer(System.out,
33: new OutputFormat("xml", "UTF-8", true));
34: Object2XML o2x = new Object2XML(serializer, true);
35: o2x.toXML(obj);
36: }
37:
38: }
|