outputFactory = XMLOutputFactory.newInstance(); inputFactory = XMLInputFactory.newInstance();
transformer = new StAXSourceTransformer();
    public XMarshaler()    {        outputFactory = XMLOutputFactory.newInstance();        inputFactory = XMLInputFactory.newInstance();    }