@SuppressWarnings("Duplicates")
    public static void main(String[] args) {
    """
	Start the example application.
	
	@param args command line arguments
    """
        // init logging
        PropertyConfigurator.configure(
                WisItWritingExample.class.getResource(PACKAGE + "/log4j.properties"));

        // create a WIS object with some example data
        // this object corresponds to the <WIS> element in XML
        WIS wis = FACTORY.createWIS();
        wis.setBENUTZER(FACTORY.createWISBENUTZER());
        wis.setOBJEKTE(FACTORY.createWISOBJEKTE());

        // append some example ads to the transfer
        wis.getOBJEKTE().getOBJEKT().add(createOBJEKT());
        wis.getOBJEKTE().getOBJEKT().add(createOBJEKT());
        wis.getOBJEKTE().getOBJEKT().add(createOBJEKT());
        wis.getOBJEKTE().setANZAHL(BigInteger.valueOf(wis.getOBJEKTE().getOBJEKT().size()));

        // convert the WIS object into a XML document
        WisItDocument doc = null;
        try {
            doc = WisItDocument.newDocument(wis);
        } catch (Exception ex) {
            LOGGER.error("Can't create XML document!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }

        // write XML document into a java.io.File
        try {
            write(doc, File.createTempFile("output-", ".xml"));
        } catch (IOException ex) {
            LOGGER.error("Can't create temporary file!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }

        // write XML document into a java.io.OutputStream
        write(doc, new NullOutputStream());

        // write XML document into a java.io.Writer
        write(doc, new NullWriter());

        // write XML document into a string and send it to the console
        writeToConsole(doc);
    }
@SuppressWarnings("Duplicates")
    public static void main(String[] args) {
        // init logging
        PropertyConfigurator.configure(
                WisItWritingExample.class.getResource(PACKAGE + "/log4j.properties"));

        // create a WIS object with some example data
        // this object corresponds to the <WIS> element in XML
        WIS wis = FACTORY.createWIS();
        wis.setBENUTZER(FACTORY.createWISBENUTZER());
        wis.setOBJEKTE(FACTORY.createWISOBJEKTE());

        // append some example ads to the transfer
        wis.getOBJEKTE().getOBJEKT().add(createOBJEKT());
        wis.getOBJEKTE().getOBJEKT().add(createOBJEKT());
        wis.getOBJEKTE().getOBJEKT().add(createOBJEKT());
        wis.getOBJEKTE().setANZAHL(BigInteger.valueOf(wis.getOBJEKTE().getOBJEKT().size()));

        // convert the WIS object into a XML document
        WisItDocument doc = null;
        try {
            doc = WisItDocument.newDocument(wis);
        } catch (Exception ex) {
            LOGGER.error("Can't create XML document!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }

        // write XML document into a java.io.File
        try {
            write(doc, File.createTempFile("output-", ".xml"));
        } catch (IOException ex) {
            LOGGER.error("Can't create temporary file!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }

        // write XML document into a java.io.OutputStream
        write(doc, new NullOutputStream());

        // write XML document into a java.io.Writer
        write(doc, new NullWriter());

        // write XML document into a string and send it to the console
        writeToConsole(doc);
    }
@ SuppressWarnings ( "Duplicates" ) public static void main ( String [ ] args ) { // init logging PropertyConfigurator . configure ( WisItWritingExample . class . getResource ( PACKAGE + "/log4j.properties" ) ) ; // create a WIS object with some example data // this object corresponds to the <WIS> element in XML WIS wis = FACTORY . createWIS ( ) ; wis . setBENUTZER ( FACTORY . createWISBENUTZER ( ) ) ; wis . setOBJEKTE ( FACTORY . createWISOBJEKTE ( ) ) ; // append some example ads to the transfer wis . getOBJEKTE ( ) . getOBJEKT ( ) . add ( createOBJEKT ( ) ) ; wis . getOBJEKTE ( ) . getOBJEKT ( ) . add ( createOBJEKT ( ) ) ; wis . getOBJEKTE ( ) . getOBJEKT ( ) . add ( createOBJEKT ( ) ) ; wis . getOBJEKTE ( ) . setANZAHL ( BigInteger . valueOf ( wis . getOBJEKTE ( ) . getOBJEKT ( ) . size ( ) ) ) ; // convert the WIS object into a XML document WisItDocument doc = null ; try { doc = WisItDocument . newDocument ( wis ) ; } catch ( Exception ex ) { LOGGER . error ( "Can't create XML document!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java.io.File try { write ( doc , File . createTempFile ( "output-" , ".xml" ) ) ; } catch ( IOException ex ) { LOGGER . error ( "Can't create temporary file!" ) ; LOGGER . error ( "> " + ex . getLocalizedMessage ( ) , ex ) ; System . exit ( 1 ) ; } // write XML document into a java.io.OutputStream write ( doc , new NullOutputStream ( ) ) ; // write XML document into a java.io.Writer write ( doc , new NullWriter ( ) ) ; // write XML document into a string and send it to the console writeToConsole ( doc ) ; }
Start the example application.

@param args command line arguments
Start the example application .