java - Custom serialization in JAXB -


Is there a way to optimize XML serialization in JAXB, similarly. Is it possible to use IXmlSerializable? (I.e. the ability to directly control the serialization of an object using an XmlReader / Writer equivalent).

I have taken a look at XML Adapter and XML Java Styop Adapters, but they seem to be that for Serializable forms and, which is not what I want.

UPDATE: Specifically, I want to customize the deserialization of a root object, which determines, how to deserialize the programmers, exactly how the internal XML (such as a specific set of known types Jacob makes Unmoderner).

Update: I've found a way to fix the problem, but it's such a dirty hack, maybe I'm one of the solutions suggested by another poster.

I'm not sure what I think is your goal, but maybe That's what you want to do programmatically inside the no-arguments constructor of your root object, which can be said immediately if the object is unrestricted.

L

Comments

  1. Thanks for the post, I am techno savvy. I believe you hit the nail right on the head. I am highly impressed with your blog.
    It is very nicely explained. Your article adds best knowledge to our Java Online Training from India.
    or learn thru Java Online Training from India Students.

    ReplyDelete

Post a Comment