0

I have a xml file generated using jaxb. However standalone = yes does not appear in the xml document. Is there a problem.

The code used is

JAXBContext context = JAXBContext.newInstance(object.getClass());
Marshaller marshall = context.createMarshaller();
marshall.setProperty(JAXB_FORMATTED_OUTPUT, true);
marshall.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, schema_location);
marshall.marshal(object, outputstream);
Anand B
  • 2,997
  • 11
  • 34
  • 55
  • Please post the relevant parts of your code. –  Sep 03 '12 at 09:44
  • Duplicate of http://stackoverflow.com/questions/12260436/standalone-value-does-not-appear-in-xml-generated-by-moxy-jaxb – Anand B Jun 13 '13 at 11:38
  • I found the answer in the below link [jaxb standalone][1] [1]: http://stackoverflow.com/questions/12260436/standalone-value-does-not-appear-in-xml-generated-by-moxy-jaxb – Anand B Sep 10 '13 at 07:03

0 Answers0