JAXBContext context = getFactory();
Unmarshaller unmarshaller = context.createUnmarshaller();
unmarshaller.setProperty(JMControllerImpl.JAXME_FORMAT_DATETIME, pDateTimeFormat);
unmarshaller.setProperty(JMControllerImpl.JAXME_FORMAT_DATE, pDateFormat);
unmarshaller.setProperty(JMControllerImpl.JAXME_FORMAT_TIME, pTimeFormat);
AllElement e = (AllElement) unmarshaller.unmarshal(new InputSource(new StringReader(s)));
StringWriter sw = new StringWriter();
Marshaller marshaller = context.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.FALSE);
marshaller.setProperty(Marshaller.JAXB_ENCODING, "ASCII");
marshaller.setProperty(JMMarshallerImpl.JAXME_XML_DECLARATION, Boolean.FALSE);