Canonical representation of Java Classes in XML
Dear Forum,
I have a question related to the usecase that is opposite of JAXB. As I understand, In JAXB one achieves a XML centric representation of Java Programming environment . i.e. given an XML ( a first class citizen) and its schema, one can then have it represented as a java class instance (secondary) and have the XML instance validated according to the rules laid by the schema etc. Here the java class just acts as a mirror of the constraits of the Schema.
I want the reverse case. I need a Java centric view with standard XML serialization . i.e. the Java Class definition must be the frst class citizen and the XML serialization must be an image of the original class definition. This is akin to a XML serialization model of Java Object instance. However though I can implement it custom, ,my problem is that i need a custom deserializer of the same.
Having no standard serialization is the problem I am facing. I need a standard canonical representation of the Java Class (instance) in XML that is readable by all.
This helps because then all the serialized Java Objects need not just be deserialized using just Java middleware but a webservices middleware. And web services add additional services would be added in this mediation. This can eventually be the building block to ESB.
Is there any technology that can be used to achive such a standard XML (de)serialization ?

