I have a xml file generated using moxy implementation of jaxb. However standalone value does not appear in the xml document.
I have a xml file generated using moxy implementation of jaxb. However standalone value
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Note: I’m the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.
The
standaloneattribute is seldom used, and is only relevant if you are using a DTD. Since JAXB (JSR-222) is primarily used with XML Schema it doesn’t apply. We chose not to output that attribute in the MOXy implemenation of JAXB (JSR-222).Other XML technologies chose not to support the standalone attribute as well. For example I am not aware of a way to output a standalone value using a StAX parser.
For More Information