XMLWriter xw = new XMLWriterImpl();
StringWriter sw = new StringWriter();
xw.setWriter(sw);
JMXmlSerializer.Data data = marshaller.getData((JMMarshaller) factory.createMarshaller(), xw);
AllTypesElementImpl element = new AllTypesElementImpl();
marshaller.marshal(data, new QName(element.getQName().getNamespaceURI(), "AllSimpleTypesElement"), getAllSimpleTypesElement());
assertStringEquals(getAllSimpleTypesElementString(), sw.toString());
}
public void testMarshalComplexElements() throws Exception {
JAXBContext myFactory = getFactory();