More about Marshalling

Client applications are not required to validate the Java content tree
before marshalling. There is also no requirement that the Java content tree
be valid with respect to its original schema to marshal it back into XML data.