How do I configure Xeena to enable importation of documents from different formats?
Xeena can be configured to import non-XML files into XML documents by invoking Java code (that you supply) to implement the transformation. To do this, follow these steps: • Write a Java class that implements the XMLImporter interface. Writing this class consists of three main steps: • Implement the getIcon, getName, and getToolTip methods for returning descriptions of your importer, which will be used by the Xeena environment. • Implement the init methods to initialize your importer (using information from the XMLEditorContext and/or the data string you may have specified in the configuration file). • Implement the importDocument method to do the actual work of letting the user select an import source and import the data into the document. For a detailed sample, please examine the BMLImporter.java sample supplied in the src directory. • Hook the class you wrote into the Xeena profile for your DTD as follows: When configuring Xeena for your DTD, insert a new importer element (as a chil