XmlSerialization. In the right way?
I am tryng to perform XmlSerialization in the way .NEt platform does using XmlSerializer, and wanted to know how could I perform such task with Java.
I read just a bit about JAXB and I wanted to know if i am putting the hands where they should.
I would like to serialize objects as simple as extending an interface or class and tell to a xml serializer to serialize an object marked as serializable.
It seems that using jaxb i can compile an xsd to generate java source code, and then perform serialization.
But is there not a much simpler process without creating an xml schema and compiling it to java classes? I mean just telling the serializer what type of object one wants to serialize and where to place it (a file for example), as simple as that.
If Jaxb is not for this purpose, could some of u guide me to the correct available APIs (if exist) to simplify these tasks.
Thanks for helping.